There You go
Removing tabs
Thread Starter
buylov
(@buylov)
Thank you!
I added this code to the file function.php
But nothing has changed.
function my_remove_dashboard_tabs( $tabs ) {
// unset( $tabs['view-courses'] );
// unset( $tabs['edit-account'] );
// unset( $tabs['redeem-voucher'] );
// unset( $tabs['orders'] );
// unset( $tabs['signout'] );
return $tabs;
}
add_filter( 'llms_get_student_dashboard_tabs', 'my_remove_dashboard_tabs' );
You have to remove slashes ( // )
It should looks like this:
function my_remove_dashboard_tabs( $tabs ) {
unset( $tabs['view-courses'] );
unset( $tabs['edit-account'] );
unset( $tabs['redeem-voucher'] );
unset( $tabs['orders'] );
unset( $tabs['signout'] );
return $tabs;
}
add_filter( 'llms_get_student_dashboard_tabs', 'my_remove_dashboard_tabs' );
-
This reply was modified 7 years, 6 months ago by
jurasjo.