Filter: ep_wp_query_cached_comments

apply_filters( 'ep_wp_query_cached_comments', $comments, $query ) → {array}

Filter cached comments pre-post query

Parameters:
Name Type Description
$comments mixed

Comments or null

$query WP_Comment_Query

WP_Comment_Query object

Since:
  • 3.6.0
Source:
Returns:

New cached comments

Type
array