I have a custom post type that I am querying for through WordPress REST API, right now the response returns all the posts. I would like to set the tax_query
argument based on the user who is sending out the request. Is this possible? Or do I have to create a specifi endpoint for that?
I was thinking something like pre_get_posts
filter, but I don't know how to do that for the REST API.