Home › Forums › Legacy Support › Support queries › Setup issues › Sidebar options, enabled options and course content from the instructor profile.
- This topic has 8 replies, 2 voices, and was last updated 2 years, 11 months ago by Veronica.
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
January 10, 2022 at 11:04 pm #377554maurigutSpectatorhi, You cannot see the items my course, Enrolled courses: https://drive.google.com/file/d/1ZLcK4SwNf-Jn7HevtX4TceYt3tplseTk/view?usp=sharing Where can I modify it to look like this ?: https://drive.google.com/file/d/1MY-wlIArZhRK_tyKrp9r3gfg4_avFqjm/view?usp=sharing Currently from the instructor area I cannot access the course contents. You would also need to modify the enabled options of the sidebar menu: https://drive.google.com/file/d/1HOfg4kiBaI-0XMVGajwEI2W8mLd8d526/view?usp=sharing And remove the option to remove user from the instructor's profile or hide it: https://drive.google.com/file/d/1t-pEEz6pSWeSFVQ9lXzqLvLJOVKygYjj/view?usp=sharing And remove the Create Course option: https://drive.google.com/file/d/1G0KJZTcEpCOmxeFoN7FzhHrP8HMvJG3L/view?usp=sharing Greetings.January 11, 2022 at 6:46 am #377578VeronicaModeratorhi check if you have enabled this setting http://prntscr.com/26cbwgv and also these sub menus can't be edit if you want to remove any submenu or create course button then we can give you custom codes accordinglyJanuary 11, 2022 at 7:02 am #377580maurigutSpectatorhi, I had this option enabled! http://prntscr.com/26cbwgv cool! Can you pass me the codes for: Remove the option to remove user from the instructor’s profile or hide it: https://drive.google.com/file/d/1t-pEEz6pSWeSFVQ9lXzqLvLJOVKygYjj/view?usp=sharing Modify the enabled options of the sidebar menu: https://drive.google.com/file/d/1HOfg4kiBaI-0XMVGajwEI2W8mLd8d526/view?usp=sharing Remove the Create Course option: https://drive.google.com/file/d/1G0KJZTcEpCOmxeFoN7FzhHrP8HMvJG3L/view?usp=sharing And create a button so that the coordinator can see the course contents without having to be registered as a student. Thanks a lot!!!January 12, 2022 at 12:24 pm #377690VeronicaModeratorhi for 1: please provide details so we can check if it is possible to hide it or not for 2: can you please let us know what exactly you want to modify? for 3: providing code in some timeJanuary 12, 2022 at 12:39 pm #377692VeronicaModerator
add this in wplms-customizer.php fileadd_action('wp_head','hide_create_course'); function hide_create_course(){ $user = wp_get_current_user(); if ( in_array( 'instructor', (array) $user->roles ) ) { //The user has the "instructor" role ?> <style> .vibebp_left_sidebar a.button.is-primary.new_mail { display:none; } </style> <?php } }
January 13, 2022 at 3:19 pm #377801maurigutSpectatorThis reply has been marked as private.January 14, 2022 at 2:23 pm #377867VeronicaModeratorhi yes right thanks for pointing this the filter is different for instructor i need to check the code again first i will work on this and then try to check for the second query you have appreciate your patience.January 17, 2022 at 5:59 am #377963maurigutSpectatorhi, received. I hope you can help me. Greetings.January 18, 2022 at 1:56 pm #378100VeronicaModeratorhi use this code:add_filter('wplms_course_settings',function($s){ $['instructor'] = 'manage_options'; return $s; });
-
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘Sidebar options, enabled options and course content from the instructor profile.’ is closed to new replies.