This endpoint retrieves menus for a specified component, such as "header"
or "footer"
. It is commonly used to fetch menus for a particular component in your theme, typically for dynamically rendering navigation or other UI elements. While "header"
is the default component, you can specify "footer"
where needed.Payload#
Response#
Usage#
In the case of using
Header
, the developer can use the example below to receive the data.
Events#
The menu process may trigger two events during the menu process, onMenuFetched and onMenuFetchFailed.Triggered when the menus are successfully fetched.Triggered if there is an error during the fetching process. Modified at 2024-12-18 19:55:58