{"id":10749364,"date":"2018-10-04T10:36:19","date_gmt":"2018-10-04T10:36:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/conditional-api-call\/"},"modified":"2018-10-04T10:36:19","modified_gmt":"2018-10-04T10:36:19","slug":"conditional-api-call","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/conditional-api-call\/","title":{"rendered":"conditional API call&#8230;"},"content":{"rendered":"<p>Hi<br \/>\nThis plugin is great and does what I need which is to sign up from a contact form to my mailing list EXCEPT:<br \/>\nI want the user to be able to opt in to the mailing list&#8230;<br \/>\nIs there anyway to make the API call CONDITIONAL on a checkbox being ticked in the contact form?<\/p>\n<p>Many Thanks<\/p>\n","protected":false},"template":"","class_list":["post-10749364","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10749364","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\/10749364\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10749364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}