Support

Account

Home Forums General Issues True/False Product Category Reply To: True/False Product Category

  • Try this

    function vv_custom_cat_layout( $options ) {
    
    	$terms = get_terms( array(
    		'taxonomy' 		=> 'post_tag',
    		'hide_empty' 	=> true,
    		'meta_key'		=> 'name_of_field',
    		'meta_value'	=> 'the_desired_value'
    	) );
    
    	foreach($terms as $term){
    		$options['columns'] = 1;
    	}
    	
    	return $options;
    
    }
    
    add_filter( 'option_generate_woocommerce_settings','vv_custom_cat_layout' );

    *not tested