• Resolved neil2508

    (@neil2508)


    On the settings page of lifterlms there are several tabs General/courses/memberships etc… Is there a way to hide these by user role?

Viewing 1 replies (of 1 total)
  • @neil2508m,

    We don’t have any settings for this but you could filter the output and unset tabs for roles you don’t want to be able to access them, something like:

    
    add_filter( 'lifterlms_settings_tabs_array', function( $tabs ) {
    
    	$user = wp_get_current_user();
    
    	if ( ! in_array( 'administrator', $user->roles ) ) {
    		unset( $tabs['checkout'] );
    	}
    
    	return $tabs;
    
    }, 777, 1 );
    

    This would remove the “checkout” tab for all users that aren’t admins

    Hope that helps,

Viewing 1 replies (of 1 total)

The topic ‘Customize the Settings Tab’ is closed to new replies.