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