woocommerce_analytics_clauses_(type)_(context)
Filter SQL clauses by type and context.
Usage
add_filter( 'woocommerce_analytics_clauses_(type)_(context)', 'wp_kama_woocommerce_analytics_clauses_type_context_filter' );
/**
* Function for `woocommerce_analytics_clauses_(type)_(context)` filter-hook.
*
* @param array $clauses The original arguments for the request.
*
* @return array
*/
function wp_kama_woocommerce_analytics_clauses_type_context_filter( $clauses ){
// filter...
return $clauses;
}
- $clauses(array)
- The original arguments for the request.
Where the hook is called
woocommerce_analytics_clauses_(type)_(context)
woocommerce/src/Admin/API/Reports/SqlQuery.php 121
$clauses = apply_filters( "woocommerce_analytics_clauses_{$type}_{$this->context}", $clauses );