Phone: 1-855-839-9966

WordPress: Remove Media Tab From Authors

Home » Wordpress Tips » WordPress: Remove Media Tab From Authors
Share this article on Facebook Share this on Twitter Stumble this article Share this on Google+ Share this on LinkedIn

Posted by Dave Lauretti on March 6, 2011

Sometime we don’t want to give our WordPress blog contributors access to the media tab because that gives them the ability to manipuate other user’s images and so forth. Well here’s a little fix that helps you block contributors from using the media tab without having to install extra WordPress plugins. Copy the code below into your functions.php file in your theme directory:

function remove_medialibrary_tab($tabs) {
unset($tabs['library']);
return $tabs;
}
if(!current_user_can('edit_others_posts')) add_filter('media_upload_tabs','remove_medialibrary_tab');

That should work. Enjoy!


Get A Call Back


Latest SEO News and Tips