AnsPress_Post_Table_Hooks::comments_flag_query( object $screen )
Description #
Delay hooking our clauses filter to ensure it’s only applied when needed.
Parameters #
- $screenobject (Required) Current screen.
Source #
File: admin/class-list-table-hooks.php
public static function comments_flag_query( $screen ) { if ( 'edit-comments' !== $screen->id ) { return; } // Check if our Query Var is defined. if ( ap_sanitize_unslash( 'show_flagged', 'p' ) ) { add_action( 'comments_clauses', array( 'AnsPress_Admin', 'filter_comments_query' ) ); } }
Expand full source code Collapse full source code View on GitHub: admin/class-list-table-hooks.php:437
Add your comment