AnsPress_Post_Table_Hooks::init()
Description #
Initialize the class
Source #
File: admin/class-list-table-hooks.php
public static function init() { anspress()->add_filter( 'views_edit-question', __CLASS__, 'flag_view' ); anspress()->add_filter( 'views_edit-answer', __CLASS__, 'flag_view' ); anspress()->add_action( 'posts_clauses', __CLASS__, 'posts_clauses', 10, 2 ); anspress()->add_action( 'manage_answer_posts_custom_column', __CLASS__, 'answer_row_actions', 10, 2 ); anspress()->add_filter( 'manage_edit-question_columns', __CLASS__, 'cpt_question_columns' ); anspress()->add_action( 'manage_posts_custom_column', __CLASS__, 'custom_columns_value' ); anspress()->add_filter( 'manage_edit-answer_columns', __CLASS__, 'cpt_answer_columns' ); anspress()->add_filter( 'manage_edit-question_sortable_columns', __CLASS__, 'admin_column_sort_flag' ); anspress()->add_filter( 'manage_edit-answer_sortable_columns', __CLASS__, 'admin_column_sort_flag' ); anspress()->add_action( 'edit_form_after_title', __CLASS__, 'edit_form_after_title' ); anspress()->add_filter( 'manage_edit-comments_columns', __CLASS__, 'comment_flag_column' ); anspress()->add_filter( 'comment_status_links', __CLASS__, 'comment_flag_view' ); anspress()->add_action( 'current_screen', __CLASS__, 'comments_flag_query', 10, 2 ); anspress()->add_filter( 'post_updated_messages', __CLASS__, 'post_custom_message' ); // phpcs:ignore anspress()->add_filter( 'manage_comments_custom_column', __CLASS__, 'comment_flag_column_data', 10, 2 ); // phpcs:ignore anspress()->add_filter( 'post_row_actions', __CLASS__, 'add_question_flag_link', 10, 2 ); }
Expand full source code Collapse full source code View on GitHub: admin/class-list-table-hooks.php:27
Add your comment