PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Newly created product variation status

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I see that you created a hook to alter the status of newly created products, which works great:

add_filter('woobe_new_product_status', function ($status) { return 'publish'; });

As I see, right now it only works for the creation of new single products. Is it possible to change the newly created product variation statuses, for eg. to private?

Thank you

Hello

I will pass this  to the developers to add this feature.

You  can   in  file - wp-content\plugins\woocommerce-bulk-editor\ext\bulkoperations\bulkoperations.php  - add  this  code - https://share.pluginus.net/image/i20221114085458.png

$variation->set_status(apply_filters('woobe_new_variation_product_status', 'publish'));

That works perfectly, thank you for the quick and helpful answer!

Hello

Great!  Welcome;)