Add tabs in product page

Home Forums Legacy Support Support queries Styling issues Add tabs in product page

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #260510
    Diana
    Participant
    @Miguelmartinl, Add this code in wp-admin > Pugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php     add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) {   // Adds the new tab   $tabs['test_tab'] = array( 'title'   => __( 'Course Review', 'woocommerce' ), 'priority'  => 50, 'callback'  => 'woo_new_product_tab_content' );   return $tabs;   } function woo_new_product_tab_content() { echo '<h2>Course Rating</h2>'; echo do_shortcode( '[course_ratings]' ); } This code will show a new tab in which course rating will appear on single product page
    #261013
    MiguelMartinL
    Spectator
    This reply has been marked as private.
    #261378
    Diana
    Participant
    This reply has been marked as private.
    #261400
    MiguelMartinL
    Spectator
    This reply has been marked as private.
    #261780
    Diana
    Participant
    This reply has been marked as private.
    #261793
    MiguelMartinL
    Spectator
    This reply has been marked as private.
    #262136
    MiguelMartinL
    Spectator
    Are you on line?
    #262239
    Diana
    Participant
    This reply has been marked as private.
    #268293
    MiguelMartinL
    Spectator
    This reply has been marked as private.
    #268548
    Diana
    Participant
    This reply has been marked as private.
Viewing 10 posts - 16 through 25 (of 25 total)
  • The topic ‘Add tabs in product page’ is closed to new replies.