• Hello, I would need to remove the “Templates” button for an editor role. I defined the role custom. For this role, I would not like this button to exist, but I have nowhere to remove it. I am attaching a picture of the button. It’s from Elementor, from “Templates”
    Screenshot: https://snipboard.io/Rz1mcG.jpg

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

Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @pertadarius

    Members doesn’t have any tool to remove admin menu, but you can try to use this code snippet and add it at the end of your theme’s functions.php file:

    add_action('admin_menu', function() {
      if(!current_user_can('administrator')){
        remove_menu_page('edit.php?post_type=elementor_library');
      }
    }, 999);

    I hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove “Templates” button from the control panel’ is closed to new replies.