I'm trying to build a search query in PHP in WordPress and I need to get all posts by a specific author in a specific category including drafts.
For example, is it possible to do something like, "status=draft and author=12 and category=7"?
Also, I haven't been able to find the page that shows how to build WordPress query.
Note: I'm using the JSON-API plug-in and using it's get_search_results method. It's not clear if it's a full WP_Query like search since "cat=1" and "author=1" does not return results but "demo" and other common keywords return posts.