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