woocommerce_webhook_options
Fires within the webhook editor, after the Webhook Data fields have rendered.
Использование
add_action( 'woocommerce_webhook_options', 'wp_kama_woocommerce_webhook_options_action' ); /** * Function for `woocommerce_webhook_options` action-hook. * * @param WC_Webhook $webhook * * @return void */ function wp_kama_woocommerce_webhook_options_action( $webhook ){ // action... }
- $webhook(WC_Webhook)
- -
Где вызывается хук
woocommerce_webhook_options
woocommerce/includes/admin/settings/views/html-webhooks-edit.php 167
do_action( 'woocommerce_webhook_options', $webhook );