{"id":14647125,"date":"2021-07-10T18:12:50","date_gmt":"2021-07-10T18:12:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/subscribe-unsubscribe-with-ajax-request\/"},"modified":"2021-07-10T18:12:50","modified_gmt":"2021-07-10T18:12:50","slug":"subscribe-unsubscribe-with-ajax-request","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/subscribe-unsubscribe-with-ajax-request\/","title":{"rendered":"Subscribe\/Unsubscribe with ajax request"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I need to put a button &#8220;subscribe&#8221; on each categories archive page so logged-in users may subscribe\/unsubscribe to the current category with a click on it. Is there an &#8220;easy&#8221; way to do so natively ? If I have to do it, and before I dive in your code to figure out how to do that, can you tell me where to look for at first ?<\/p>\n<p>Thanks for your help \ud83d\ude42<\/p>\n<p>S\u00e9b.<\/p>\n","protected":false},"template":"","class_list":["post-14647125","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14647125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14647125\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14647125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}