• Resolved roughwriters

    (@roughwriters)


    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://ww.wp.xz.cn/plugins/badgeos/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    in your functions.php:

    remove_action( 'admin_init', 'badgeos_shortcodes_add_editor_button' );
    Thread Starter roughwriters

    (@roughwriters)

    Thanks 🙂

    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

    (@tw2113)

    The BenchPresser

    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' );

    Thanks Michael,
    no more luck with that either.

    Does it work for you ?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.