pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.06k stars 264 forks source link

Support Pods fields in REST API as params for meta query #7211

Open JoryHogeveen opened 8 months ago

JoryHogeveen commented 8 months ago

Description

This PR will add basic support for meta based REST API queries when passing Pods fields as parameters.

Related GitHub issue(s)

Fixes #7210

Testing instructions

  1. Create CPT (or use Post)
  2. Add a custom field
  3. Enable REST API
  4. Query field: example.com/wp-json/wp/v2/{CPT}?{FIELDNAME}={VALUE}

Changelog text for these changes

PR checklist

what-the-diff[bot] commented 8 months ago

PR Summary