Shortcode Button in editor visible after update again

  • Resolved
    Posted in: Highend WP Theme  
  • Customer
    flyinghearts
    September 19, 2019 at 7:13 am #142128

    Hello,
    a time a ago you helped me to hide the shortcode button in the editor,
    but after the update it is shown up again:

    This was the code you gave to me:

    <?php
    add_action( ‘after_setup_theme’, ‘highend_child_remove_shortcode_gen’, 99 );
    function highend_child_remove_shortcode_gen() {

    remove_action( ‘init’, ‘hbthemes_shortcode_buttons’ );

    if ( class_exists( ‘RevSliderTinyBox’ ) ) {
    remove_action( ‘admin_head’, array( ‘RevSliderTinyBox’, ‘add_tinymce_editor’ ) );
    }
    }

    if ( isset( $insert_pages_plugin ) ) {
    remove_filter( ‘mce_external_plugins’, array( $insert_pages_plugin, ‘insert_pages_handle_filter_mce_external_plugins’ ) );
    remove_filter( ‘mce_buttons’, array( $insert_pages_plugin, ‘insert_pages_handle_filter_mce_buttons’ ) );
    }
    ?>

    And this was the old topic:
    https://hb-themes.com/forum/all/topic/hide-highend-shortcode-generator-button-in-editor/

    Now the button is visible for the customer after the update, I need to fix it fast, can you tell me how to, please?

    Thank you so much.

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.