Not currently – but that’s a good suggestion and I’ve added it to the project list. Currently, if a user has edit_posts capability, all of the post functions are loaded.
Hi Chad,
I have the same issue with RevSlider and I found a hack to hide that but it involves commenting out a line of code in Rev Sliders core files, which I’m not happy to do.
Ideally a function I can add to the child theme will be fine but a toggle switch in WP-Members settings for Admins would be even better! Even better than that would be to hide by user role 🙂
Chad,
I found this for someone who had a similar need for a different plugin, could I adapt this in someway?
/**
* Hide the shortcode generator from any user below administrator level
* http://gndev.info/kb/how-to-restrict-access-to-shortcode-generator/
*/
update_option( ‘su_generator_access’, ‘administrator’ );
Chad,
This works… I am hiding WP-Members, Rev Slider and the Yoast SEO elements from the Publish meta box.
// Hide elements from all but Admins
function uyf_custom_admin() {
global $user_level;
if ($user_level != ’10’ ) {
echo ‘<style type=”text/css”>
.score-text, .yoast-logo.svg.na, div#mceu_15, div#mceu_16 {display:none;}
</style>’;
}
}
add_action(‘admin_head’, ‘uyf_custom_admin’);