woocommerce_product_importer_pre_expand_data хук-фильтр . WC 1.0
Expand special and internal data into the correct formats for the product CRUD.
Использование
add_filter( 'woocommerce_product_importer_pre_expand_data', 'filter_function_name_9451' ); function filter_function_name_9451( $data ){ // filter... return $data; }
- $data(массив)
- Data to import.
Где вызывается хук
woocommerce_product_importer_pre_expand_data
woocommerce/includes/import/class-wc-product-csv-importer.php 793
$data = apply_filters( 'woocommerce_product_importer_pre_expand_data', $data );
Где используется хук в ядре WooCommerce
woocommerce/includes/admin/importers/mappings/shopify.php 90
add_filter( 'woocommerce_product_importer_pre_expand_data', 'wc_importer_shopify_expand_data' );