woocommerce_new_webhook action-hookWC 1.0

Usage

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
-

Where the hook is called

WC_Webhook_Data_Store::create()
woocommerce_new_webhook
woocommerce/includes/data-stores/class-wc-webhook-data-store.php 64
do_action( 'woocommerce_new_webhook', $webhook_id, $webhook );

Where the hook is used in WooCommerce

Usage not found.