I'm looking for a way to completely disable "add pdf" media button on text editor but not with css tricks. Is it a hook to add on function.php for doing this?

Also a need to keep add media button.

Thanks for your answer.

enter image description here

1 Answer 1


This is not a core WordPress button so it must be added by a plugin.

You can upload a PDF with the add media button anyway, so look for the plugin that's adding it and disable it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.