pre_get_comments action-hook . WP 3.1.0
Fires before comments are retrieved.
Usage
add_action( 'pre_get_comments', 'action_function_name_2706' ); function action_function_name_2706( $this ){ // action... }
- $this(WP_Comment_Query)
- Current instance of WP_Comment_Query (passed by reference).
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-comment-query.php 374
do_action_ref_array( 'pre_get_comments', array( &$this ) );