how to block the add new category button by the instructor?

Home Forums Legacy Support Support queries Other issues how to block the add new category button by the instructor?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #357258
    matomate
    Participant
    Hi, Is it possible to prevent the instructor from creating a new category during the creation of his course? https://prnt.sc/12w84t0 But just use the categories created by the site administrator.
    #357280
    Veronica
    Moderator
    hi please try this add_filter('wplms_front_end_new_tax_cap',function($flag){ return false; }); Please add the below code in your wplms-customizer.php file present in your wplms customizer plugin: For that Go to wp-admin>>Plugins>>Editor>>Select WPLMS Customizer Plugin >>wplms-customizer.php
    #357350
    matomate
    Participant
    Hi, Comment trouver ce fichier wplms-customizer? https://prnt.sc/12x3r56 cela ne figure pas à mon niveau
    #357369
    Scott Lang
    Moderator
    Customizer is a blank plugin so you can add your code without changing actual plugin. You can download customizer plugin from here https://wplms.io/support/wp-content/uploads/2015/08/wplms-customizer.zip
    #357411
    matomate
    Participant
    Hi Scoott Lang, Thanks for your intervension, but after installing wplms-customizer.zip and pasting the above code, the "Add new" button is still present when the instructor creates his course. https://prnt.sc/12xbn85
    #357523
    Scott Lang
    Moderator
    You can use custom CSS to hide https://prnt.sc/12yid3m Add the custom Css in wp-admin > Appearance > Customize > Custom Css
    
    .vibebp_main li.vibe_course-cat div.search_term_list >div:first-child{
        display:none;
    }
    
    Let us Also know if the issue has been fixed.
    #357599
    matomate
    Participant
    big thanks, It is OK now
    #357667
    Scott Lang
    Moderator
    Ok, let us know if the issue is resolved and we can close this thread.
    #357680
    Veronica
    Moderator
    ok closed
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘how to block the add new category button by the instructor?’ is closed to new replies.