How to hide rtMedia pro short code button?


#1

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


#2

Hi Hansruedi,

Please check this document -> https://rtcamp.com/rtmedia/docs/admin/posteditor-shortcode-button/remove-post-editor-shortcode-button/ to remove shortcode buttons in frontend editor.


#3

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!


#4

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.


#5

Hi Ritesh,

Working perfect. Thanks for your support!


#6

I am glad that your issue is resolved :slight_smile:


#7