Como adicionar um toggle button ao menu de postagem e implementar uma ação para esse toggle button em um plugin do Discourse?

Reading the above linked topics should answer your related dev questions. It’s possible you could achieve what you want with a theme component instead of plugin. Thus, I would also add these to your reading list:

also, from the first link I posted:

3 curtidas