Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Latest commit

 

History

History
17 lines (14 loc) · 624 Bytes

File metadata and controls

17 lines (14 loc) · 624 Bytes

menu

WPS::menu

Get back the requested menu in object format. Each item is a WPS\Menu_Item object that can contains the sub-item depending on the menu structure. This function is very usefull to create simple as well as complexe menu without the weird wordpress menu functions. Here you have the raw menu structured in an array of objects that you can use to generate your menu easily.

$menu = WPS::menu('primary');

Full documentation

See more