• Hi,
    I need help with removing the dashboard and the “test”button from the left menu on the profile page. I’ve tried this code but with no success. Could you please help me.

    //hide tab in page profile
     if ( !function_exists( 'thim_remove_tabs_course_profile' ) ) {
    	function thim_remove_tabs_course_profile( $defaults ) {
    		//Example remove gradebook
    		unset( $defaults['gradebook'] );
    		//remove assignment
    		unset( $defaults['assignment'] );
    		//remove assignment
    		unset( $defaults['withdrawals'] );
     		unset( $defaults['orders'] );
    		unset( $defaults['wishlist'] );
    		unset( $defaults['settings'] );
    		unset( $defaults['certificates'] );
    		unset( $defaults['quizzes'] );
    		unset( $defaults['instructor'] );
    		unset( $defaults['courses'] );
    		return $defaults;
    	}
    }
    add_filter( 'learn-press/profile-tabs', 'thim_remove_tabs_course_profile', 1001 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    We checked this code and it is working, please be sure you add it to the correct file (functions.php)

    Thanks

    Thread Starter cwa10

    (@cwa10)

    Ok, I’m not sure what you mean, I just added I to the extra CSS, but that’s not correct then?

    Plugin Support brianvu-tp

    (@briantp)

    Hi,

    You need to add the code above to the function.php file of the main theme or child theme, it can’t work when add to the CSS.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove dashboard and “test” from profile’ is closed to new replies.