How to remove upload/insert media button from Post but keep in Custom Post Type
-
Hello
I am developing a theme where I am using a custom post type name ‘photo’. I Want too remove ‘Upload/Insert’ Media button from this custom post type but at the same time I want to keep it in Post.
I found a code after searching where it remove the ‘Upload/Insert’ media button from both Custom Post type, Post and even from pages.
add_action( 'media_buttons_context' , 'test' ); function test() { return; }
Please help me to remove it only from the custom post type.
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to remove upload/insert media button from Post but keep in Custom Post Type’ is closed to new replies.