Passing filters
-
I can do this:
Get all posts (defaults to ‘post’ type):
/wp-json.php/posts/
Get defined post types:/wp-json.php/posts/types/
Get single post by id (e.g. ’11’):/wp-json.php/posts/11
I can see that the getPosts method accepts a $filters argument. How would I pass filters to the posts endpoint?
Thanks for any information and for contributing this plugin!
Darin
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Passing filters’ is closed to new replies.