Logged in menu

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #275116
    Diana
    Participant
    This reply has been marked as private.
    #275174
    Masi496
    Spectator
    This reply has been marked as private.
    #275524
    Diana
    Participant
    This reply has been marked as private.
    #278065
    Masi496
    Spectator
    This reply has been marked as private.
    #278416
    Jackson
    Blocked
    Hello, As @Daina says you to that if you want to saw this menu for students user role or admin user role or any other Then you have to use code given below that work for The user has the "author" role means admin: "Go to wp-admin> Plugins> editor> select wplms customizer plugin> wplms-customizer.php and add the below code there" add_filter ('wplms_logged_in_top_menu', 'loggedin_login_panel'); function loggedin_login_panel ($ loggedin_menu) { $user = wp_get_current_user(); if ( in_array( 'author', (array) $user->roles ) ) { $ loggedin_menu ['custom'] = array ( 'icon' => 'icon-book-alt2', 'label' => __ ('COURSE KIT'), 'link' => 'https: //www.huelladocente .com / student-kit / menu-group-selection / menu-course-gr-001 / ' ); return $ loggedin_menu; } } Thanks,
Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Logged in menu’ is closed to new replies.