woocommerce_api_(api_request) action-hookWC 1.0

Usage

add_action( 'woocommerce_api_(api_request)', 'wp_kama_woocommerce_api_request_action' );

/**
 * Function for `woocommerce_api_(api_request)` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_api_request_action(){

	// action...
}

Where the hook is called

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

Where the hook is used in 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 );