Support » Plugin: Insert Pages » Hide shortcode button in editor

  • Resolved melanieisabella


    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 to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Paul Ryan


    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 months ago by Paul Ryan.
Viewing 1 replies (of 1 total)
  • The topic ‘Hide shortcode button in editor’ is closed to new replies.