Need help with wp_all_import_is_post_to_create
-
Good day.
I need a little help.
I try not to import products in woocommerce relative to the price.
Currently not received and all products are ignored.
“// Snippet from AllImport for not create productions
add_filter( ‘wp_all_import_is_post_to_create’, ‘my_check_to_create’, 10, 3 );function my_check_to_create( $continue_import, $data, $import_id ) {
$productLinePrice = $data['regular_price']; if ( empty($productLinePrice) || $productLinePrice == '' || $productLinePrice < 3.00) { // If product doesn't exists then skip importing. return false; } else { // Else, import the product. return true; }
}
“
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Need help with wp_all_import_is_post_to_create’ is closed to new replies.