Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to reorder product tabs

    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 615
    Comment on it

    If you want to reorder product tabs, you can do this according to you wish as you want, just add the below code to your function.php.

    1. <?php
    2. add_filter( 'woocommerce_product_tabs', 'FindNerd_woo_reorder_tabs', 90 );
    3. function FindNerd_woo_reorder_tabs( $woo_tabs ) {
    4. $woo_tabs['reviews']['priority'] = 10; // Reviews first
    5. $woo_tabs['description']['priority'] = 15; // Description second
    6. $woo_tabs['additional_information']['priority'] = 20; // Additional information third
    7.  
    8. return $woo_tabs;
    9. } ?>

    In above code I have used filter hook (add_filter) to reorder product tabs contents.

    Also here we have set first priority to review, second to description and third priority to additional information , but you can set priority according to your need.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: