exclude meta key from duplicating products
add_filter( ‘woocommerce_duplicate_product_exclude_meta’, function( $meta_to_exclude ) { $meta_to_exclude[] = ‘meta_key_to_exclude’; return $meta_to_exclude; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘woocommerce_duplicate_product_exclude_meta’, function( $meta_to_exclude ) { $meta_to_exclude[] = ‘meta_key_to_exclude’; return $meta_to_exclude; } );Continue reading
add_filter( ‘totaltheme/theme_builder/location_template_id’, function( $template_id, $location ) { if ( $template_id && ‘single’ === $location && is_front_page() ) { $template_id = 0; // disable on the homepage } return $template_id; }, 10, 2 );Continue reading