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