If you want to change default product visibility in woocommerce then add that following code in your functions.php file.
Here instead of “hidden” change your default visibility values.
function filter_woocommerce_product_visibility_default( $visible ) { return "hidden"; //return your default value here }; add_filter( 'woocommerce_product_visibility_default', 'filter_woocommerce_product_visibility_default', 10, 1 );
Have any doubt, then comment here!
Thanks, great article.
Hi there,
Would it be possible to change the default product visibility for variable products only?
Thanks for your help.
Kind regards,
JP