learndash_login_menu_items( array $menu_items, array $menu_args = array() )
Updates the menus being displayed to show the login/logout.
Description Description
Fires on wp_nav_menu_objects
hook. Looks for items where the ‘url’ is ‘#login’.
Parameters Parameters
- $menu_items
-
(Required) The WP Menu items to be displayed.
- $menu_args
-
(Optional) The WP Menu args related to the menu set to be displayed.
Default value: array()
Return Return
(array) $menu_items
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
3.0.7 | Introduced. |