woocommerce_order_data_store_cpt_query_unsupported_args
Allows 3rd parties to filter query args that will trigger an unsupported notice.
Usage
add_filter( 'woocommerce_order_data_store_cpt_query_unsupported_args', 'wp_kama_woocommerce_order_data_store_cpt_query_unsupported_args_filter' ); /** * Function for `woocommerce_order_data_store_cpt_query_unsupported_args` filter-hook. * * @param array $unsupported_args Array of query arg names. * * @return array */ function wp_kama_woocommerce_order_data_store_cpt_query_unsupported_args_filter( $unsupported_args ){ // filter... return $unsupported_args; }
- $unsupported_args(array)
- Array of query arg names.
Changelog
Since 9.2.0 | Introduced. |
Where the hook is called
woocommerce_order_data_store_cpt_query_unsupported_args
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 1030-1033
$unsupported_args = (array) apply_filters( 'woocommerce_order_data_store_cpt_query_unsupported_args', array( 'meta_query', 'field_query' ) );