svrooij
Forum Replies Created
-
Forum: Reviews
In reply to: [REST API - Filter Fields] Thanks works greatGlad it helps you!
Together we try to stop the inmens data hunger.Forum: Reviews
In reply to: [REST API - Filter Fields] Very goodWill have a look at this. It is added to the github issues here https://github.com/svrooij/rest-api-filter-fields/issues/12
Thanks for the help, this will be in the readme when I update the plugin!
Forum: Reviews
In reply to: [REST API - Filter Fields] Great PluginI’m glad you like this plugin!
I was looking for this feature and found this page that says it is better not to modify responses, but I did anyway ?? with over 1000 active installs at the moment.
If you really like this plugin (that is made in my spare time) have a look at ?? sponsor me a beer.
Forum: Reviews
In reply to: [WP REST API Cache] Not working with _embed@redprogrammer according to this short video, your assumption was incorrect. Apart from that you’re being rude. Can you please either remove you comments or apologize to the plugin author?
Most plugins are made in spare-time, and most plugins are free. It would be nice if you won’t be such a jerk.
Forum: Plugins
In reply to: [REST API - Filter Fields] How do you use this plugin?@truongpvuet this is actually a different question. But this plugin doesn’t add fields, apart from my personal opinion about the uselessness of
title.rendered
. This page describes how to add an extra field with the plaintext value, after that you can select it by using?fields=id,plaintext
Forum: Plugins
In reply to: [REST API - Filter Fields] Field PodsHello @topfired2
This plugin only modifies the response send back to the client. It doesn’t add any fields. But you cann add fields like described in the REST API Documentation – modifying responses.
Those fields would appear for every post, and if you don’t need them you can no select them with this plugin.
@jaredb138 I’m glad you found this out yourself! Could you maybe provide me a better way on how this would be documented?
This plugin is made in some spare time, and if you use this plugin in some production website/app, it would be great if you could support it a little. Buy me a beer ??
@donlychan The default value in these “recommended” ssl settings. Is to deny frames. So change the DENY in the end of that line to SAME-ORIGIN
Forum: Plugins
In reply to: [REST API - Filter Fields] How do you use this plugin?@mountainsmoke did you got it to work already?
You just take the wordpress url, append the endpoint (like /wp-json/wp/v2/posts ) and then you append ?fields=id,title,link (with the fields you’d like).
Forum: Reviews
In reply to: [REST API - Filter Fields] YOU ARE A GODI know, glad you noticed!
I also really like beer, this plugin took quite some time to figure out. Could you give me an update on how many visitors you have? Just interested!Forum: Plugins
In reply to: [REST API - Filter Fields] nice but doesn’t work with _embed paramThe problem was that I was modifying the response and then the links (and the resulting embeds) couldn’t be retrieved.
My latest version on Github should work. Not tested very good, so not released to the plugin dir yet.
Could you verify this solves all the problems?
Forum: Plugins
In reply to: [REST API - Filter Fields] nice but doesn’t work with _embed paramCould it be possible that a key in a php array cannot start with an underscore?
The plugin works by array filtering, it loops through the array and sets the value in the new array if the key is in the list of fields.I cannot find the code for the _embedded field (e.g. I don’t know where it is added).
Don’t have a solution for this at the moment maybe some other WordPress wizard could show me the way.
Forum: Plugins
In reply to: [REST API - Filter Fields] nice but doesn’t work with _embed param