Tribe__Events__Aggregator__Errors::hide_error_comments_from_feeds( array $where, obj $wp_comment_query )
Exclude Aggregator Errors (comments) from showing in comment feeds
Contents
Parameters
- $where
-
(array) (Required)
- $wp_comment_query
-
(obj) (Required) WordPress Comment Query Object
Return
(array) $where
Source
File: src/Tribe/Aggregator/Errors.php
public function hide_error_comments_from_feeds( $where, $wp_comment_query ) {
global $wpdb;
// Prevent this happening if we don't have EA active
if ( ! tribe( 'events-aggregator.main' )->is_active( true ) ) {
return $where;
}
$where .= $wpdb->prepare( ' AND comment_type != %s', self::$comment_type );
return $where;
}
Changelog
| Version | Description |
|---|---|
| 4.3.2 | Introduced. |