Title: Hide shortcode button in editor
Last modified: July 9, 2019

---

# Hide shortcode button in editor

 *  Resolved [melanieisabella](https://wordpress.org/support/users/melanieisabella/)
 * (@melanieisabella)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/hide-shortcode-button-in-editor/)
 * Hello,
    is it possible to hide the insert pages shortcode button in the visual
   editor. I don´t want it to show up for editors. It is also ok if it genrell does
   not show up, because i do not need it in the editor. I´m using the visual editor
   for editors ( user role editor, adminimize, and visual composer role manager),
   thank you,
 * Example: I did it for the revolution slider in my function.php (child theme)
   
   if ( class_exists( ‘RevSliderTinyBox’ ) ) { remove_action( ‘admin_head’, array(‘
   RevSliderTinyBox’, ‘add_tinymce_editor’ ) ); }
 * Greetings Melanie
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-shortcode-button-in-editor%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/hide-shortcode-button-in-editor/#post-11749765)
 * Sure thing, here’s a similar code snippet to remove the button:
 *     ```
       add_action( 'init', function () {
           global $insert_pages_plugin;
           remove_action( 'admin_head', array( $insert_pages_plugin, 'insert_pages_admin_init' ), 1 );
       } );
       ```
   
    -  This reply was modified 6 years, 10 months ago by [Paul Ryan](https://wordpress.org/support/users/figureone/).

Viewing 1 replies (of 1 total)

The topic ‘Hide shortcode button in editor’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/hide-shortcode-button-in-editor/#post-11749765)
 * Status: resolved