wp-api-meta-endpoints
wp-api-meta-endpoints copied to clipboard
Possible with the meta of CPT?
Hi, I was having problems getting updates to and creation of postmeta working until I installed your plugin, and then it started working for the built in post type, but still would not work for my custom post types (despite them being exposed and working for retrieving postmeta). Is there some coding change I could make here that would also enable posting data to the meta endpoints of CPTs?
ok I just discovered that this will allow writing to CPTs as well, but via /wp-json/wp/v2/posts/id/meta instead of /wp-json/wp/v2/cptname/id/meta...is this the expected behavior?
In case this helps someone else looking for the same, here is the solution I came up with.