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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745381758a4625260.html
评论列表(0条)