woocommerce_product_import_pre_insert_product_object хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_product_import_pre_insert_product_object', 'wp_kama_woocommerce_product_import_pre_insert_object_filter', 10, 2 );

/**
 * Function for `woocommerce_product_import_pre_insert_product_object` filter-hook.
 * 
 * @param  $object 
 * @param  $data   
 *
 * @return 
 */
function wp_kama_woocommerce_product_import_pre_insert_object_filter( $object, $data ){

	// filter...
	return $object;
}
$object
-
$data
-

Где вызывается хук

WC_Product_Importer::process_item()
woocommerce_product_import_pre_insert_product_object
woocommerce/includes/import/abstract-wc-product-importer.php 280
$object = apply_filters( 'woocommerce_product_import_pre_insert_product_object', $object, $data );

Где используется хук в WooCommerce

Использование не найдено.