woocommerce_analytics_customers_query_args
Get product data based on the current query vars.
Использование
add_filter( 'woocommerce_analytics_customers_query_args', 'wp_kama_woocommerce_analytics_customers_query_args_filter' ); /** * Function for `woocommerce_analytics_customers_query_args` filter-hook. * * @param $query_vars * * @return */ function wp_kama_woocommerce_analytics_customers_query_args_filter( $query_vars ){ // filter... return $query_vars; }
- $query_vars
- -
Где вызывается хук
woocommerce_analytics_customers_query_args
woocommerce/src/Admin/API/Reports/Customers/Query.php 49
$args = apply_filters( 'woocommerce_analytics_customers_query_args', $this->get_query_vars() );
woocommerce/src/Admin/API/Leaderboards.php 243-252
apply_filters( 'woocommerce_analytics_customers_query_args', array( 'orderby' => 'total_spend', 'order' => 'desc', 'order_after' => $after, 'order_before' => $before, 'per_page' => $per_page, ) )