AnsPress_Post_Table_Hooks::comment_flag_column_data( string $column, integer $comment_id )
Description #
Show comment_flag data in comment table.
Parameters #
- $columnstring (Required) name of the comment table column.
- $comment_idinteger (Required) Current comment ID.
Source #
File: admin/class-list-table-hooks.php
public static function comment_flag_column_data( $column, $comment_id ) { if ( 'comment_flag' === $column ) { $count = get_comment_meta( $comment_id, ANSPRESS_FLAG_META, true ); if ( $count ) { echo '<span class="ap-comment-col-flag">'; echo esc_html( $count ); echo '</span>'; } } }
Expand full source code Collapse full source code View on GitHub: admin/class-list-table-hooks.php:409
Add your comment