parse_comment_query хук-событиеWP 4.2.0

Fires after the comment query vars have been parsed.

Использование

add_action( 'parse_comment_query', 'wp_kama_parse_comment_query_action' );

/**
 * Function for `parse_comment_query` action-hook.
 * 
 * @param WP_Comment_Query $query The WP_Comment_Query instance (passed by reference).
 *
 * @return void
 */
function wp_kama_parse_comment_query_action( $query ){

	// action...
}
$query(WP_Comment_Query)
The WP_Comment_Query instance (passed by reference).

Список изменений

С версии 4.2.0 Введена.

Где вызывается хук

WP_Comment_Query::parse_query()
parse_comment_query
wp-includes/class-wp-comment-query.php 348
do_action_ref_array( 'parse_comment_query', array( &$this ) );

Где используется хук в WordPress

Использование не найдено.