- Mark menus as deprecated via
doing_it_wrong()
in favor of WordPress' core menus endpoints in WP >= 5.9 - props @thefrosty - Allow continued use of legacy menus via filter:
rest_menus_allow_legacy_menus
:add_filter( 'rest_menus_allow_legacy_menus', '__return_true' );
- Fix (V2): Fix V2 register_rest_route compatibility issue with WP 5.5. (Missing permission_callback arg)
- Tweak: The
object_slug
property is now available to get the slug for relative URLs - props @Fahrradflucht
- Fix (V2): Nodes duplication in sublevel menu items, see #22 - props @bpongvh
- Fix (V2): The items array was empty because it was looking for "ID" key instead of "id" - props @Dobbler
- Fix (V1): Check for JSON_API_VERSION constant, as in a mu-plugin installation of WP API 1.0 it will not show up under active_plugins - props @pdufour
- Tweak (V2 only): Use lowercase
id
instead of uppercaseID
in API responses, to match the standard lowercaseid
used across WP REST API - props @puredazzle - Fix: Fixed WP API v1 version detection for WordPress 4.4 - props Thomas Chille
- Enhancement: Added WP REST API v2 support - props @foxpaul
- Misc: Supports WordPress 4.3
- Misc: Minor edits to headers and phpdocs
- Misc: Improved security
- Misc: Supports WordPress 4.2, add composer.json for wp-packagist
- Fix: Fixes bug where duplicate items where created in nested menus - props @josh-taylor
- Tweak: Introduced
json_menus_format_menu_item
filter hook - props @Noctine
- Misc: Submission to WordPress.org plugins directory.
- Enhancement: Routes for menus in theme locations now include complete tree with item order and nested children
- Tweak:
description
attribute for individual items is now included in results - Fix: Fixed typo confusing
parent
withcollection
in meta
- First public release