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!

2 Comments on How to change default product visibility in woocommerce

  1. Hi there,
    Would it be possible to change the default product visibility for variable products only?
    Thanks for your help.
    Kind regards,
    JP

Leave a Reply

Your email address will not be published. Required fields are marked *