כיצד ניתן להוסיף toggle button לתפריט הפוסט וליישם פעולה עבור אותו toggle button ב-Discourse plugin?

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 לייקים