From d9000f4b234995cb7e0e2aca1e167077f4dfbb18 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Wed, 4 Sep 2019 14:15:21 -0300 Subject: [PATCH] add filter PHPDocs --- plugins/woocommerce-admin/src/Notes/DataStore.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/woocommerce-admin/src/Notes/DataStore.php b/plugins/woocommerce-admin/src/Notes/DataStore.php index d0860bbf151..cb0a92a0ec5 100644 --- a/plugins/woocommerce-admin/src/Notes/DataStore.php +++ b/plugins/woocommerce-admin/src/Notes/DataStore.php @@ -371,6 +371,14 @@ class DataStore extends \WC_Data_Store_WP implements \WC_Object_Data_Store_Inter $where_clauses .= " AND status IN ($escaped_status_types)"; } + /** + * 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 ); }