svrooij / rest-api-filter-fields

Filter the fields returned by the Wordpress rest api (v2)
https://wordpress.org/plugins/rest-api-filter-fields/
MIT License
32 stars 6 forks source link

filtering not working with fields containing ":" #18

Closed mohamedbelhassen closed 4 years ago

mohamedbelhassen commented 6 years ago

I really appreciated this plugin. But, I noticed that filtering fails when the field name contains colon (:) such as the following wordpress fgields: wp:featuredmedia and wp:attachment

"wp:featuredmedia": [ { "embeddable": true, "href": "http://fahamni.tn/wp-json/wp/v2/media/76" } ], "wp:attachment": [ { "href": "http://fahamni.tn/wp-json/wp/v2/media?parent=75" } ],

could you please correct this bug or tell me how to proceed

svrooij commented 4 years ago

I'm closing this issue because this plugin is no longer needed in Wordpress. See https://github.com/svrooij/rest-api-filter-fields#deprecated for more details. Or check out the official _fields parameter supported by the wordpress core.

I hope you enjoyed using this plugin, you might want to consider sponsoring