How to order product tabs in single product view?
add_filter( 'woocommerce_product_tabs', 'reordered_wc_tabs', 98 ); function reordered_wc_tabs( $tabs ) { if (!empty($tabs)) { $tabs['description']['priority'] = 5; return $tabs; } }
How to order product tabs in single product view?
add_filter( 'woocommerce_product_tabs', 'reordered_wc_tabs', 98 ); function reordered_wc_tabs( $tabs ) { if (!empty($tabs)) { $tabs['description']['priority'] = 5; return $tabs; } }
This code should be added to theme function.php file
remove_action('wp_head', 'print_emoji_detection_script', 7); remove_action('wp_print_styles', 'print_emoji_styles'); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'admin_print_styles', 'print_emoji_styles' );
Code need to be added to theme function.php file
function template_chooser($template) { global $wp_query; $post_type = get_query_var('post_type'); if( $wp_query->is_search && $post_type == 'learn' ) { return locate_template('archive-learn.php'); } return $template; } add_filter('template_include', 'template_chooser');
New Link Boundaries
add_filter( 'woocommerce_product_tabs', 'ws_woo_rename_tab', 98); function ws_woo_rename_tab($tabs) { $tabs['description']['title'] = __( 'Additional information' ); return $tabs; }