diff --git a/plugins/woocommerce-admin/src/Notes/DataStore.php b/plugins/woocommerce-admin/src/Notes/DataStore.php index d7c68023ceb..6524da135b6 100644 --- a/plugins/woocommerce-admin/src/Notes/DataStore.php +++ b/plugins/woocommerce-admin/src/Notes/DataStore.php @@ -371,7 +371,15 @@ class DataStore extends \WC_Data_Store_WP implements \WC_Object_Data_Store_Inter $where_clauses .= " AND status IN ($escaped_status_types)"; } - return $where_clauses; + /** + * Filter the notes WHERE clause before retrieving the data. + * + * Allows modification of the notes select criterial. + * + * @param string $where_clauses The generated WHERE clause. + * @param array $args The original arguments for the request. + */ + return apply_filters( 'wc_admin_notes_where_clauses', $where_clauses, $args ); } /**