How to hide button Add h5p in WordPress editor toolbar

k.kwasniewski's picture
Forums: 

Hi 

There is any way to hide button Add h5p in WordPress editor toolbar?

I mean about that button http://www.evernote.com/l/AOE9PB-Ou1dMEr2a2zX5JNpvvrryR3vIXvA/

Thank you in advanced

Best regards

Krzysztof

icc's picture

There is only one way to hide one single media button in WordPress, and that is to use CSS.
If you want to remove all buttons you can remove the 'media_buttons' action using the 'admin_head' action or similar.

Here's a similar question on WordPress StackExchange

k.kwasniewski's picture

Hi

I need to hide only "add h5p button" another I want to keep.

I was trying to use css, but I can hide all buttons. Do you have some suggestion how to hide only add h5p button in css?

Best regards

Krzysztof

icc's picture

Adding the following to your CSS file should do the trick:

#add-h5p {
  display: none; /* Hides 'Add H5P' media button */
}
k.kwasniewski's picture

Thank you a lot for help