taxonomy : false; $additional_taxonomy_archives = [ 'product_brand', // Included in WooCommerce core from 9.4 'berocket_brand', 'product_brands', 'pwb-brand', 'yith_product_brand', ]; $is_product_search_archive = is_search() && is_post_type_archive( 'product' ); $is_product_attribute_archive = $taxonomy && taxonomy_is_product_attribute( $taxonomy ); $is_additional_taxonomy_archive = $taxonomy && in_array( $taxonomy, $additional_taxonomy_archives, true ); return apply_filters( 'flatsome_is_shop_archive', is_shop() || is_product_category() || is_product_tag() || $is_product_search_archive || $is_product_attribute_archive || $is_additional_taxonomy_archive ); }