solidusjs / wp-solidus

Headless WordPress theme for use with the WordPress JSON API and Solidus.
MIT License
1 stars 0 forks source link

#Rulq9fR2 Support WP-API Updates #7

Closed localjo closed 9 years ago

localjo commented 9 years ago

This PR is for all changes required to support updating WP-API to v1.2.1

localjo commented 9 years ago

To expose a custom field in the API, that field needs to be added to Types control (Types > Custom Fields Control > select field > Bulk Actions > Add to Types Control), and added to a group called Public (to create; Types > Custom Fields > Add New Group).

localjo commented 9 years ago

@pushred I named the key that is added to the api types_custom_meta, basically custom_meta namespaced with types_ for the Types plugin. To use this, we'll just have to update places where we're using the post_meta key to use types_custom_meta instead, or to check both.

I recommend that we install this Nadando update on production, add the fields we want to expose to a group named "Public" in Types, then update our views and jungle-solidus to use the new key, and then we'll be safe to update the WP-API plugin.

pushred commented 9 years ago

:+1:

localjo commented 9 years ago

wpcf-byline needs to be exposed in the API on JJ and possibly others.