The functionality provided by this plugin is supported in wordpress core from version 4.9.8
Today I released a new version that will just show a message if your used version is higher then 5. Also the fields
parameter will no longer work. Everybody should migrate to the _fields
parameter provided by wordpress itself.
The build-in version filters the data before it’s send to the database. Which is even more awesome, since this plugin only filtered the output (after everything got pulled form the database.
More info can be found here
I hope you guys liked this plugin!
]]>Hi, i’m use this plugin to filter json res api response like
https://www.example.it/test/alert_app/wp-json/wp/v2/posts
I’m able to filter for example title and content of posts with
?fields=title.rendered,content.rendered parameters
But if i try to filter a third level deep fields it doesn’t works: How to get id?
Help thanks
[
{
“_embedded”: {
“author”: [
{
“id”: 1,
“name”: “admin”
}
]
}
}
],
“wp:featuredmedia”: [],
“wp:term”: []
}
}
]
Hi Team,
Is this plugin(“rest-api-filter-fields”) compatible with WordPress 5.0.2 and PHP7.2
Hello, I couldn’t use the plugin with woocommerce REST API, is it supported? if not would you please consider developing it?
thanks in advance
]]>I want to filter the ID title of first ten posts and the featured image. Please help. Love the plugin just geting to know it ??
]]>hey,
How can I exclude anything using this plugin. I want exclude a category.
And another help I need, how can I display parent category with only first level child.
Thanks ??
]]>Do you plan to add support to allow filtering of results generated from queries like /wp/v2/posts?categories=1
so that any posts returned can be filtered? If I try that now I get the following error (likely because the built-in API is trying to parse the ?fields=...
):
{
"code": "rest_invalid_param",
"message": "Invalid parameter(s): categories",
"data": {
"status": 400,
"params": {
"categories": "categories[0] is not of type integer."
}
}
}
Edit: Figured it out. This plugin does filter out search results. I had a syntax error and was doing /wp/v2/posts?categories=1?fields=id
instead of /wp/v2/posts?categories=1&fields=id
Great Plugin, thanks again.
I use a table store. And before version 4.7 used the filter [podsfield] = value to look for a custom idfield.
Is it possible to expose this field with this plugin?
I’ve installed it, but nowhere do I see how to use this plugin.
By the plugin description, I feel like I should be seeing some area where I can filter out what fields are included in REST API.
]]>Hi, nice plugin, everything fine also with the new WP 4.7, but dowsn’t show embedded fiels
]]>