Contributors: chrishutchinson, kokarn, ramvi
Tags: acf, api, wp-api
Requires at least: 3.9.0
Tested up to: 4.7.3
Stable tag: 1.4.0
License: MIT
License URI: http://opensource.org/licenses/MIT
Plugs Advanced Custom Fields (ACF) data into the WordPress JSON API (WP-API).
Puts all ACF fields from posts, pages, custom post types, comments, attachments and taxonomy terms, into the WP-API output under the 'acf' key. Creates a new /option
endpoint returning options (requires ACF Options Page plugin).
acf-to-wp-api
directory to /wp-content/plugins/
.See the CONTRIBUTING.md
file.
See issue #13 for example code to do this.
/wp-json/wp/v2/acf/options
Request a list of all options configured in ACF
/wp-json/wp/v2/acf/options/{option-name}
Request a specific option, by passing in the option name
/option
endpoint for ACF options add-on (Thanks @kokarn).