AnsPress_Post_Table_Hooks::comment_flag_view( array $views )

Description #

Add flag view link in comment table

Parameters #

  • $views
    array (Required) view items array.

Source #

File: admin/class-list-table-hooks.php

	public static function comment_flag_view( $views ) {
		$views['flagged'] = '<a href="edit-comments.php?show_flagged=true"' . ( ap_sanitize_unslash( 'show_flagged', 'g' ) ? ' class="current"' : '' ) . '>' . esc_attr__( 'Flagged', 'anspress-question-answer' ) . '</a>';
		return $views;
	}

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