woocommerce_new_webhook
Использование
add_action( 'woocommerce_new_webhook', 'wp_kama_woocommerce_new_webhook_action', 10, 2 ); /** * Function for `woocommerce_new_webhook` action-hook. * * @param $webhook_id * @param $webhook * * @return void */ function wp_kama_woocommerce_new_webhook_action( $webhook_id, $webhook ){ // action... }
- $webhook_id
- -
- $webhook
- -
Где вызывается хук
woocommerce_new_webhook
woocommerce/includes/data-stores/class-wc-webhook-data-store.php 64
do_action( 'woocommerce_new_webhook', $webhook_id, $webhook );