woocommerce_analytics_clauses_(type)_(context) хук-фильтрWC 1.0

Filter SQL clauses by type and context.

Использование

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(массив)
The original arguments for the request.

Где вызывается хук

SqlQuery::get_sql_clause()
woocommerce_analytics_clauses_(type)_(context)
woocommerce/src/Admin/API/Reports/SqlQuery.php 121
$clauses = apply_filters( "woocommerce_analytics_clauses_{$type}_{$this->context}", $clauses );

Где используется хук в WooCommerce

Использование не найдено.