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

load response handler

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

add_filter( 'woocommerce_api_default_response_handler', 'wp_kama_woocommerce_api_default_response_handler_filter', 10, 3 );

/**
 * Function for `woocommerce_api_default_response_handler` filter-hook.
 * 
 * @param  $string 
 * @param  $path   
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_api_default_response_handler_filter( $string, $path, $that ){

	// filter...
	return $string;
}
$string
-
$path
-
$that
-

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

WC_API_Server::__construct()
woocommerce_api_default_response_handler
woocommerce/includes/legacy/api/v3/class-wc-api-server.php 140
$handler_class = apply_filters( 'woocommerce_api_default_response_handler', 'WC_API_JSON_Handler', $this->path, $this );
woocommerce/includes/legacy/api/v1/class-wc-api-server.php 146
$handler_class = apply_filters( 'woocommerce_api_default_response_handler', 'WC_API_JSON_Handler', $this->path, $this );
woocommerce/includes/legacy/api/v2/class-wc-api-server.php 140
$handler_class = apply_filters( 'woocommerce_api_default_response_handler', 'WC_API_JSON_Handler', $this->path, $this );

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

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