wp_add_fields_to_navigation_fallback_embedded_links( array $schema ): array

In this article

Expose additional fields in the embeddable links of the Navigation Fallback REST endpoint.

Description

The endpoint may embed the full Navigation Menu object into the response as the self link. By default, the Posts Controller will only expose a limited subset of fields but the editor requires additional fields to be available in order to utilize the menu.

Parameters

$schemaarrayrequired
the schema for the wp_navigation post.

Return

array the modified schema.

Source

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.