Support » Plugin: Gutenberg » Add custom toggle button on gutenberg

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Martin –

    Let me get back to you on this one in a bit. Looking around to see what I can find.

    Try this:

    – Open a new post with Gutenberg.
    – Click on the gear icon from the menu, upper right corner.
    – Select Document.
    – Open the Discussion menu item.

    You should see this:

    Screen Shot 2018 08 07 at 11 40 12 AM

    EDIT: The above screen shot is the toggle for comments and ping backs, not social sharing options. Still looking.

    • This reply was modified 1 year, 5 months ago by lizkarkoski.

    Ok. So it looks like an inline social sharing option has been discussed here:

    Please add your ideas about this in a comment. Specifically these two:

    Hello ! Thanks a lot for taking the time to reply to me 🙂

    The social sharing button is just an example, my point is that I, as a plugin developer, be able to add a toggle for any custom action linked to my post. Like if my plugin is a plugin that replaces all the occurences of “apple” in the article to “orange” I would like to give the option to my user to be able to tick a box like “convert apple to oranges [x]” and if it’s ticked the plugin will replace apple for oranges, if not, it won’t.

    Basically I want to add a custom option related to my plugin directly on the editor.

    In the older editor I used post_submitbox_misc_actions to add my custom checkbox but now it doesn’t exists.

    Below is a screenshot of how this checkbox looks in the “classic” editor :

    Thanks 🙂


    Any update on this ? All I could find on development ressources were how to add blocks.

    Moderator Marius L. J.



    It’s not possible to manipulate this area (at this time at least), Daniel’s been very good at keeping that repository up to date so far.

    For now, your best alternative is likely to create your own sidebar panel for this. I found to be a good writeup on this to help get you started at the very least.



    A similar problem… we were using post_submitbox_misc_actions to modify the post status to add workflow capabilities. The WordPress documentation mentions this as the solution to doing so since adding a post status does not reflect in the UI. Since this is no longer possible how do we modify the UI to reflect a newly added post status?

    On a side note, its somewhat mind blowing that the first bug report dealing with custom post status entries not appearing in the UI was posted 9 years ago…

    Moderator Marius L. J.


    Hiya @bluejay256 (just tagging you, as you were the last posted so you’re not left wondering here).

    This is another users topic from more than 5 months ago, and as such it’s not the best place for ongoing discussions. As such I’ve closed it to avoid needless notification emails going out to the old participants of the thread.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add custom toggle button on gutenberg’ is closed to new replies.