woocommerce_note_where_clauses хук-фильтр . WC 1.0
Filter the notes WHERE clause before retrieving the data.
Allows modification of the notes select criterial.
Использование
add_filter( 'woocommerce_note_where_clauses', 'filter_function_name_1941', 10, 2 ); function filter_function_name_1941( $where_clauses, $args ){ // filter... return $where_clauses; }
- $where_clauses(строка)
- The generated WHERE clause.
- $args(массив)
- The original arguments for the request.
Где вызывается хук
woocommerce_note_where_clauses
woocommerce/packages/woocommerce-admin/src/Notes/DataStore.php 446
return apply_filters( 'woocommerce_note_where_clauses', $where_clauses, $args );