AnsPress_Post_Table_Hooks::comment_flag_column_data( string $column, integer $comment_id )

Description #

Show comment_flag data in comment table.

Parameters #

  • $column
    string (Required) name of the comment table column.
  • $comment_id
    integer (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>';
			}
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment