{"id":14301154,"date":"2021-04-10T08:45:04","date_gmt":"2021-04-10T08:45:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/deactivate-orders-automatically\/"},"modified":"2021-04-10T08:45:04","modified_gmt":"2021-04-10T08:45:04","slug":"deactivate-orders-automatically","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/deactivate-orders-automatically\/","title":{"rendered":"Deactivate Orders Automatically"},"content":{"rendered":"<p>Hello,<\/p>\n<p>My woocommerce orders are linked to REST API that provides a license to my customers for using the product.<\/p>\n<p>I Want to know is there any code that can automatically,that can set the order to &#8216;cancelled&#8217; or &#8216;pending&#8217; or &#8216;processing&#8217; after 24 hours or 2 days or a set timeframe?<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-14301154","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14301154","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\/14301154\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14301154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}