woocommerce_api_wc_gateway_paypal хук-событиеWC 1.0

Handle IPN requests for the legacy paypal gateway by calling gateways manually if needed.

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

add_action( 'woocommerce_api_wc_gateway_paypal', 'wp_kama_woocommerce_api_wc_gateway_paypal_action' );

/**
 * Function for `woocommerce_api_wc_gateway_paypal` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_api_wc_gateway_paypal_action(){

	// action...
}

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

woocommerce_legacy_paypal_ipn()
woocommerce_api_wc_gateway_paypal
woocommerce/includes/wc-deprecated-functions.php 226
do_action( 'woocommerce_api_wc_gateway_paypal' );

Где используется хук в 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' ) );