Site logo

Archived topic

Permit Only Admin View of Sidebar Layout and Footer Widget Metaboxes

1 reply · Started by Anonymous on October 20, 2014

Viewing posts 1–2 of 2

If I may be so bold as to request the implementation of only permitting admins to view the 'Sidebar Layout' and 'Footer Widget' metaboxes within the WP backend.

I believe one way to do this would be to update 'inc/metaboxes.php' with the following:

AT VERY TOP:
if( current_user_can('administrator') ) {

AT VERY BOTTOM:
}

Thank you!

I’ve made it so the next version will only show these metaboxes for admins.

For those of you who want to change that, I added a filter so you can change the required capability.

Thanks!

This archived topic is closed to new replies.