wp-api-meta-endpoints icon indicating copy to clipboard operation
wp-api-meta-endpoints copied to clipboard

Possible with the meta of CPT?

Open ssuess opened this issue 8 years ago • 2 comments

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?

ssuess avatar Feb 23 '17 21:02 ssuess

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?

ssuess avatar Feb 24 '17 15:02 ssuess

In case this helps someone else looking for the same, here is the solution I came up with.

ssuess avatar Feb 27 '17 15:02 ssuess