I am using Wordpress Media Upload (< 3.5) and Media Manager (>=3.5) in metabox as an upload field, and need to customize the menu so that they only have upload and media library functionality without "From URL"/"Insert From URL" and "Create Gallery". So I need to remove them.

I can't use Wordpress filter such as mentioned in this solution, since I am using it in metabox, which is exists in Wordpress new post page that already has "add media" functionality and will be broken if I use such filter.

1 Answer
1

I found that the following worked best... when you click "Add Featured Image" from the editor page (the metabox link), the options for "insert into post" and all of the options you mention are missing from the media manager. This was perfect for me, as I wanted to remove the option for users to insert images into posts. If this is what you're after, put this code in your theme's functions.php file...

Users will now only be able to add images by clicking on the link in the meta box, which is now named "Add Images." Additionally, the link within the meta box has been changed to avoid confusion. Hope this helps!