woocommerce_api_serve_request хук-фильтрWC 1.0

This is a filter rather than an action, since this is designed to be re-entrant if needed

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

add_filter( 'woocommerce_api_serve_request', 'wp_kama_woocommerce_api_serve_request_filter', 10, 3 );

/**
 * Function for `woocommerce_api_serve_request` filter-hook.
 * 
 * @param  $false  
 * @param  $result 
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_api_serve_request_filter( $false, $result, $that ){

	// filter...
	return $false;
}
$false
-
$result
-
$that
-

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

WC_API_Server::serve_request()
woocommerce_api_serve_request
woocommerce/includes/legacy/api/v1/class-wc-api-server.php 239
$served = apply_filters( 'woocommerce_api_serve_request', false, $result, $this );
woocommerce/includes/legacy/api/v3/class-wc-api-server.php 237
$served = apply_filters( 'woocommerce_api_serve_request', false, $result, $this );
woocommerce/includes/legacy/api/v2/class-wc-api-server.php 237
$served = apply_filters( 'woocommerce_api_serve_request', false, $result, $this );

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

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