parse_comment_query WordPress Action Hook
This hook is used to parse the comment query. It allows you to modify the comment query before it is executed. This is useful for making sure that the correct comments are returned for a given request.
do_action_ref_array( 'parse_comment_query', WP_Comment_Query $query ) #
Fires after the comment query vars have been parsed.
Parameters
- $query
(WP_Comment_Query)The WP_Comment_Query instance (passed by reference).
Source
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |