Title: Hide &quot;Add Shortcode Button&quot; in Editor?
Last modified: August 30, 2016

---

# Hide "Add Shortcode Button" in Editor?

 *  Resolved [roughwriters](https://wordpress.org/support/users/roughwriters/)
 * (@roughwriters)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/)
 * Is there a way to hide the “Add BadgeOS Shortcode” button in the editor?
 * I think it’s breaking my optimizepress live editor, and I’d rather not have to
   disable all BadgeOS while I spent hours building landing pages.
 * Is there a way to disable it?
 * [https://wordpress.org/plugins/badgeos/](https://wordpress.org/plugins/badgeos/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721222)
 * in your functions.php:
 *     ```
       remove_action( 'admin_init', 'badgeos_shortcodes_add_editor_button' );
       ```
   
 *  Thread Starter [roughwriters](https://wordpress.org/support/users/roughwriters/)
 * (@roughwriters)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721352)
 * Thanks 🙂
 *  [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721591)
 * Hi Micheal, this doesn’t work for me on site specific plugin, it only works on
   theme functions.php (tested on two site, of course the two plugins are active).
 * How can we make this work from a site specific plugin ?
 * Thx !
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 3 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721592)
 * possible that the remove_action is being found and run before BadgeOS is for 
   adding it.
 * Perhaps wrap it in a callback on the admin_init hook?
 *     ```
       function my_func() {
       remove_action( 'admin_init', 'badgeos_shortcodes_add_editor_button' );
       }
       add_action( 'admin_init', 'my_func' );
       ```
   
 *  [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721593)
 * Thanks Michael,
    no more luck with that either.
 * Does it work for you ?
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 3 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721594)
 * I’ll confess I didn’t test it, I just guestimated with it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Hide "Add Shortcode Button" in Editor?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/badgeos_85d3bc.svg)
 * [BadgeOS](https://wordpress.org/plugins/badgeos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/badgeos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/badgeos/)
 * [Active Topics](https://wordpress.org/support/plugin/badgeos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/badgeos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/badgeos/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/hide-add-shortcode-button-in-editor/#post-6721594)
 * Status: resolved