LLMS_Nav_Menus::customize_add_items( array $items = array(), string $type = '', string $object = '', integer $page )
Adds LifterLMS menu items to the customizer.
Parameters Parameters
- $items
-
(array) (Optional) Menu items.
Default value: array()
- $type
-
(string) (Optional) Requested menu item type.
Default value: ''
- $object
-
(string) (Optional) Requested menu item object.
Default value: ''
- $page
-
(integer) (Optional) Requested page number. Default
0.
Return Return
(array)
Source Source
File: includes/class.llms.nav.menus.php
}
/**
* Adds LifterLMS menu items to the customizer.
*
* @since 3.14.7
*
* @param array $items Optional. Menu items. Default empty array.
* @param string $type Optional. Requested menu item type. Default empty string.
* @param string $object Optional. Requested menu item object. Default empty string.
* @param integer $page Optional. Requested page number. Default `0`.
* @return array
*/
public function customize_add_items( $items = array(), $type = '', $object = '', $page = 0 ) {
if ( 'llms_nav' !== $object ) {
return $items;
}
foreach ( $this->get_nav_items() as $id => $data ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.14.7 | Introduced. |