woocommerce_api_serve_request filter-hookWC 1.0

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

Usage

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
-

Where the hook is called

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 );

Where the hook is used in WooCommerce

Usage not found.