• Resolved Tuppa

    (@my2424u)


    Good day, great plugin. I own a multivendor site and I wanted to know if there is a way I can remove restriction from my vendors as well? Currently only admins and editors are allowed that exception… If there is a php code that I can simply input that would be great… Let me know, thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aftab Ali Muni

    (@aftabmuni)

    Yes, you can edit it in disable-right-click-for-wp.php file.

    There is a code like

    if( current_user_can('editor') || current_user_can('administrator') ) 
    ....
    ....
    
    Thread Starter Tuppa

    (@my2424u)

    Hye, thanks for your reply… I do see

    if( current_user_can(‘editor’) || current_user_can(‘administrator’) ) {
    //Silence Is Golden

    I have custom roles on my website… I was able to replace ‘editor’ with ‘vip’ and now I can get the ‘vip’ users to be excluded… But now the site editors wont be excluded because I switched the writing to “VIP’ … I do have some basic knowledge.. But can you tell me how to add it so both editor and vip roles can be excluded? Would it be something like this below?

    if( current_user_can(‘editor & vip’) || current_user_can(‘administrator’) ) {
    //Silence Is Golden

    Please help… Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User Roles Restriction’ is closed to new replies.