ActionScheduler_wpCommentLogger::filter_comment_feed()publicWC 1.0

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

Метод класса: ActionScheduler_wpCommentLogger{}

Хуков нет.

Возвращает

Строку.

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

$ActionScheduler_wpCommentLogger = new ActionScheduler_wpCommentLogger();
$ActionScheduler_wpCommentLogger->filter_comment_feed( $where, $query );
$where(строка) (обязательный)
-
$query(WP_Query) (обязательный)
-

Код ActionScheduler_wpCommentLogger::filter_comment_feed() WC 8.7.0

public function filter_comment_feed( $where, $query ) {
	if ( is_comment_feed() ) {
		$where .= $this->get_where_clause();
	}
	return $where;
}