Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Nav_Menus::get_nav_items()
Retrieve a filtered array of custom LifterLMS nav menu items
Description Description
Return Return
(array)
Source Source
File: includes/class.llms.nav.menus.php
private function get_nav_items() { $items = array(); foreach ( LLMS_Student_Dashboard::get_tabs() as $id => $data ) { if ( ! empty( $data['nav_item'] ) ) { $items[ $id ] = array( 'url' => $data['endpoint'] ? llms_get_endpoint_url( $data['endpoint'], '', llms_get_page_url( 'myaccount' ) ) : $data['url'], 'label' => $data['title'], 'title' => $data['title'], ); } } $items['signin'] = array( 'url' => '#llms-signin', 'label' => __( 'Sign In', 'lifterlms' ), 'title' => __( 'Sign In', 'lifterlms' ), ); $items['signout'] = array( 'url' => '#llms-signout', 'label' => __( 'Sign Out', 'lifterlms' ), 'title' => __( 'Sign Out', 'lifterlms' ), ); return apply_filters( 'llms_nav_menu_items', $items ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.7 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: