Code to Disable Media Uploader in WordPress Blog

Posted by

Hi,

You can use this code to disable media uploader in your wordpress blog:

<?php

function removemediabuttons()
{
remove_action( ‘media_buttons’, ‘media_buttons’ );
}
add_action(‘admin_head’,’removemediabuttons’);
?>

Save this code in any php file and upload it in plugins directory as plugin. After that activate this plugin as normal..which will disabled the media uploader option from wordpress post writing section:

Thanks,

Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.