Make plugin compatible with REST API version 2.0-beta12
-
Version 2.0-beta12 of the WordPress REST API plugin breaks some features of this plugin. Issues could be fixed by doing following changes:
1. Replace register_api_field function with register_rest_field -function
2. Replace ‘term’ parameter with ‘category’ in addACFDataTermV2 function.From the WordPress REST API changelog:
* BREAKING CHANGE: Uses discrete schema title for categories and tags.
If you’ve usedregister_rest_field( 'term' )
, you’ll need to change'term'
to'tag'
and/or'category'
.* BREAKING CHANGE: Rename
register_api_field()
toregister_rest_field()
.
- The topic ‘Make plugin compatible with REST API version 2.0-beta12’ is closed to new replies.