woocommerce_new_webhook_data filter-hookWC 1.0

Usage

add_filter( 'woocommerce_new_webhook_data', 'wp_kama_woocommerce_new_webhook_data_filter', 10, 3 );

/**
 * Function for `woocommerce_new_webhook_data` filter-hook.
 * 
 * @param  $array 
 * @param  $data  
 * @param  $that  
 *
 * @return 
 */
function wp_kama_woocommerce_new_webhook_data_filter( $array, $data, $that ){

	// filter...
	return $array;
}
$array
-
$data
-
$that
-

Where the hook is called

WC_API_Webhooks::create_webhook()
woocommerce_new_webhook_data
woocommerce/includes/legacy/api/v3/class-wc-api-webhooks.php 193-200
$webhook_data = apply_filters( 'woocommerce_new_webhook_data', array(
	'post_type'     => 'shop_webhook',
	'post_status'   => 'publish',
	'ping_status'   => 'closed',
	'post_author'   => get_current_user_id(),
	'post_password' => 'webhook_' . wp_generate_password(),
	'post_title'    => ! empty( $data['name'] ) ? $data['name'] : sprintf( __( 'Webhook created on %s', 'woocommerce' ), (new DateTime('now'))->format( _x( 'M d, Y @ h:i A', 'Webhook created on date parsed by DateTime::format', 'woocommerce' ) ) ),
), $data, $this );
woocommerce/includes/legacy/api/v2/class-wc-api-webhooks.php 193-200
$webhook_data = apply_filters( 'woocommerce_new_webhook_data', array(
	'post_type'     => 'shop_webhook',
	'post_status'   => 'publish',
	'ping_status'   => 'closed',
	'post_author'   => get_current_user_id(),
	'post_password' => 'webhook_' . wp_generate_password(),
	'post_title'    => ! empty( $data['name'] ) ? $data['name'] : sprintf( __( 'Webhook created on %s', 'woocommerce' ), (new DateTime('now'))->format( _x( 'M d, Y @ h:i A', 'Webhook created on date parsed by DateTime::format', 'woocommerce' ) ) ),
), $data, $this );

Where the hook is used in WooCommerce

Usage not found.