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).


Top ↑

Source

File: wp-includes/class-wp-comment-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.