ActionScheduler_wpCommentLogger::filter_comment_feed
Make sure Action Scheduler logs are excluded from comment feeds, which use WP_Query, not the WP_Comment_Query class handled by @see self::filter_comment_queries().
Method of the class: ActionScheduler_wpCommentLogger{}
No Hooks.
Returns
String.
Usage
$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger(); $ActionScheduler_wpCommentLogger->filter_comment_feed( $where, $query );
- $where(string) (required)
- Query's
whereclause. - $query(WP_Query) (required)
- Query object.
ActionScheduler_wpCommentLogger::filter_comment_feed() ActionScheduler wpCommentLogger::filter comment feed code WC 10.8.1
public function filter_comment_feed( $where, $query ) {
if ( is_comment_feed() ) {
$where .= $this->get_where_clause();
}
return $where;
}