• Resolved Paul

    (@anandjose2000)


    By default “Contributor” role users are able to delete Quizzes. How to disable delete option for this role?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Paul,

    Let me check with your requirement on my staging website. Please expect a little delay in response as it is weekend.

    Thanks for reaching out to us.

    Kind regards,
    Kriti

    Hi @anandjose2000,

    I checked your requirement on my staging but this can’t be done.

    My sincere apologies.

    Kind regards,
    Kriti

    Thread Starter Paul

    (@anandjose2000)

    Hi @expresstechsupport, thanks for your response.

    It is quite illogical to give Contributor roles permission to delete, WP doesn’t allow this for posts. Maybe its a feature worth considering in future release.

    For the time being I managed to find a workaround using following edits to quizzes-page.php file, although I know that this not the right way to do it. I’m not a programmer myself.

    <?php
    if ( current_user_can( 'activate_plugins' ) ): // check for a capability that only admins have ?>
    
    <option value="delete_pr"><?php _e('Delete Permanently', 'quiz-master-next'); ?></option>
    
    <?php endif; // end of user capability check ?>

    This can be used hide Delete & Bulk Delete options, although the file will be replaced if I update. Would wait for someone else from the community to share the thoughts.

    Hi Paul,

    Thanks for sharing the details. However, I will talk to the development team whether this can be included in our roadmap or not.

    Kind regards,
    Kriti

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable delete option for Contributor Role’ is closed to new replies.