• Hi,
    Thanks for your plugin it’s really great.

    Now I’m looking for to disable options : Settings , manage and ADD to all roles users except Administrator.

    Thanks

Viewing 1 replies (of 1 total)
  • Not sure if it’s helpful for you or anyone else, but I wanted to hide this stuff from Editors too.

    I ended up modifying the code from @nathaningram in this post to also hide the re-ordering options and clean up the menu a little.

    Simply open up the functions.php for your child theme and paste in the following:

    // Hides WP Help Functions for Non-Admins
    
    function ni_hide_wphelp_actions() {
       echo '<style type="text/css">
               #cws-wp-help-actions {display:none !important;}
               #cws-wp-help-document .post-edit-link {display:none !important;}
               #cws-wp-help-listing-wrap .sort-handle.ui-sortable-handle {display:none !important;}
               #cws-wp-help-listing ul { margin:10px 0 0 0 !important;}
             </style>';
    }
    
    if ( ! current_user_can('administrator') ) {
    add_action('admin_head', 'ni_hide_wphelp_actions');
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Hide the options for Editor and less roles’ is closed to new replies.