Events Manager VS JSON API
-
I want to output events created with Events Manager, but so far i’ve only managed to output past events. The query seems to ignore future events:
https://localhost/wordpress/?json=get_recent_posts&post_type=eventHow can i output future events?
Here: https://www.ads-software.com/plugins/json-api/other_notes/#5.1.-Plugin-hooks
I’ve found this hook, but I can’t get it working right:// Allow queries of non-published content add_action('json_api_query_args', 'my_query_args'); function my_query_args($args) { $args['post_status'] = array('draft', 'future', 'publish'); }
[ No bumping please. ]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Events Manager VS JSON API’ is closed to new replies.