woocommerce_api_create_product action-hookWC 1.0

Usage

add_action( 'woocommerce_api_create_product', 'wp_kama_woocommerce_api_create_product_action', 10, 2 );

/**
 * Function for `woocommerce_api_create_product` action-hook.
 * 
 * @param  $id   
 * @param  $data 
 *
 * @return void
 */
function wp_kama_woocommerce_api_create_product_action( $id, $data ){

	// action...
}
$id
-
$data
-

Where the hook is called

WC_API_Products::create_product()
woocommerce_api_create_product
woocommerce/includes/legacy/api/v3/class-wc-api-products.php 347
do_action( 'woocommerce_api_create_product', $id, $data );
woocommerce/includes/legacy/api/v2/class-wc-api-products.php 293
do_action( 'woocommerce_api_create_product', $id, $data );

Where the hook is used in WooCommerce

Usage not found.