WC_Comments::exclude_webhook_comments_from_feed_where
Exclude webhook comments from queries and RSS.
Method of the class: WC_Comments{}
No Hooks.
Returns
String.
Usage
$result = WC_Comments::exclude_webhook_comments_from_feed_where( $where );
- $where(string) (required)
- The WHERE clause of the query.
Changelog
| Since 2.1 | Introduced. |
WC_Comments::exclude_webhook_comments_from_feed_where() WC Comments::exclude webhook comments from feed where code WC 10.6.2
public static function exclude_webhook_comments_from_feed_where( $where ) {
return $where . ( trim( $where ) ? ' AND ' : '' ) . " comment_type != 'webhook_delivery' ";
}