{"id":7165861,"date":"2016-03-12T21:30:43","date_gmt":"2016-03-12T21:30:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/filter-for-auto-generated-posts\/"},"modified":"2016-08-31T14:37:00","modified_gmt":"2016-08-31T14:37:00","slug":"filter-for-auto-generated-posts","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/filter-for-auto-generated-posts\/","title":{"rendered":"Filter for auto generated posts"},"content":{"rendered":"<p>Hi, i want to achieve this:<br \/>\n1. one campaign with auto generated posts<br \/>\n2. sending every morning<br \/>\n3. insert all posts max 24hours old<br \/>\n4. order by meta value desc<\/p>\n<p>i can do 1. and 2., but i cant do 3. and 4. Its becauce there is no filter for wp_posts args. Is there solution for this in Premium version, or no? Could you add this filters to \/models\/wp_posts.php or in some campaign controller? thx<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wysija-newsletters\/<\/p>\n","protected":false},"template":"","class_list":["post-7165861","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7165861","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\/7165861\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7165861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}