WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
событие не описано

woocommerce_api_(api_request) хук-событие . WC 1.0

Trigger an action which plugins can hook into to fulfill the request.

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

add_action( 'woocommerce_api_(api_request)', 'action_function_name_8364' );
function action_function_name_8364(){
	// action...
}

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

WC_API::handle_api_requests()
woocommerce_api_(api_request)
woocommerce/includes/class-wc-api.php 161
do_action( 'woocommerce_api_' . $api_request );

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

woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php 34
add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_response' ) );
woocommerce/includes/legacy/api/v1/class-wc-api-authentication.php 26
add_filter( 'woocommerce_api_check_authentication', array( $this, 'authenticate' ), 0 );
woocommerce/includes/legacy/api/v1/class-wc-api-customers.php 40
add_filter( 'woocommerce_api_order_response', array( $this, 'add_customer_data' ), 10, 2 );
woocommerce/includes/legacy/api/v1/class-wc-api-resource.php 37
add_filter( 'woocommerce_api_endpoints', array( $this, 'register_routes' ) );
woocommerce/includes/legacy/api/v1/class-wc-api-resource.php 44
add_filter( "woocommerce_api_{$resource}_response", array( $this, 'maybe_add_meta' ), 15, 2 );
woocommerce/includes/legacy/api/v1/class-wc-api-resource.php 45
add_filter( "woocommerce_api_{$resource}_response", array( $this, 'filter_response_fields' ), 20, 3 );
woocommerce/includes/legacy/api/v1/class-wc-api-xml-handler.php 31
add_filter( 'woocommerce_api_report_response', array( $this, 'format_sales_report_data' ), 100 );
woocommerce/includes/legacy/api/v1/class-wc-api-xml-handler.php 34
add_filter( 'woocommerce_api_product_response', array( $this, 'format_product_data' ), 100 );
woocommerce/includes/legacy/api/v2/class-wc-api-authentication.php 26
add_filter( 'woocommerce_api_check_authentication', array( $this, 'authenticate' ), 0 );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 39
add_filter( 'woocommerce_api_order_response', array( $this, 'add_customer_data' ), 10, 2 );
woocommerce/includes/legacy/api/v2/class-wc-api-resource.php 36
add_filter( 'woocommerce_api_endpoints', array( $this, 'register_routes' ) );
woocommerce/includes/legacy/api/v2/class-wc-api-resource.php 40
add_filter( "woocommerce_api_{$resource}_response", array( $this, 'maybe_add_meta' ), 15, 2 );
woocommerce/includes/legacy/api/v2/class-wc-api-resource.php 65
add_filter( "woocommerce_api_{$name}_response", array( $this, 'filter_response_fields' ), 20, 3 );
woocommerce/includes/legacy/api/v3/class-wc-api-authentication.php 26
add_filter( 'woocommerce_api_check_authentication', array( $this, 'authenticate' ), 0 );
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 39
add_filter( 'woocommerce_api_order_response', array( $this, 'add_customer_data' ), 10, 2 );
woocommerce/includes/legacy/api/v3/class-wc-api-resource.php 36
add_filter( 'woocommerce_api_endpoints', array( $this, 'register_routes' ) );
woocommerce/includes/legacy/api/v3/class-wc-api-resource.php 40
add_filter( "woocommerce_api_{$resource}_response", array( $this, 'maybe_add_meta' ), 15, 2 );
woocommerce/includes/legacy/api/v3/class-wc-api-resource.php 67
add_filter( "woocommerce_api_{$name}_response", array( $this, 'filter_response_fields' ), 20, 3 );