woocommerce_admin_payment_gateway_connection_return
Использование
add_action( 'woocommerce_admin_payment_gateway_connection_return', 'wp_kama_woocommerce_admin_payment_gateway_connection_return_action' ); /** * Function for `woocommerce_admin_payment_gateway_connection_return` action-hook. * * @param $gateway_id * * @return void */ function wp_kama_woocommerce_admin_payment_gateway_connection_return_action( $gateway_id ){ // action... }
- $gateway_id
- -
Где вызывается хук
woocommerce_admin_payment_gateway_connection_return
woocommerce/src/Admin/Features/PaymentGatewaySuggestions/PaymentGatewaysController.php 102
do_action( 'woocommerce_admin_payment_gateway_connection_return', $gateway_id );
Где используется хук в WooCommerce
woocommerce/src/Admin/Features/PaymentGatewaySuggestions/PaymentGatewaysController.php 23
add_action( 'woocommerce_admin_payment_gateway_connection_return', array( __CLASS__, 'handle_successfull_connection' ) );