How to hide rtMedia pro short code button?

I would like to hide the “rtMedia pro short code” button in the frontend editor of BP Docs. Please let me know how …

Hi Hansruedi,

Please check this document -> to remove shortcode buttons in frontend editor.

Hi Ritesh,

First of all there is a typo in your code…

add_filter( ‘mce_buttons’, ‘rtmedia_pro_cancel_short_code_buttons’ ), 10, 1 );

should be

add_filter( ‘mce_buttons’, ‘rtmedia_pro_cancel_short_code_buttons’, 10, 1 );

…and it’s not hiding the rtMedia pro short code button in the BP Docs frontend editor!

Ok, it was a minor mistake in that doc. We had updated that page and had also change priority of the hook. Check that code now.

Hi Ritesh,

Working perfect. Thanks for your support!

I am glad that your issue is resolved :slight_smile: