Exclude post_meta from Rest API Endpoint
So I know that I can call:
$response = wp_remote_get(
'https://www.example.com/wp-json/wp/v2/posts'
);
To get all the posts from a specific website using the Rest API Endpoint.
I also know that we can pass in the parameters to exclude tags and categories, such as:
https://www.example.com/wp-json/native/v1/posts?exclude_categories=42
Based on this: https://developer.wordpress.org/rest-api/reference/posts/#list-posts
Is there a way that I can exclude specific post_meta
posts from showing in the Rest API?
So let that I want to do: https://www.example.com/wp-json/native/v1/posts?exclude_postmeta_key=global
and grab all posts that don't have the global
post_meta attached to the post.
Is something like this possible?