@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
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.