Browse: Home / Functions /


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 #


(array) (Required) The WP Menu items to be displayed.


(array) (Optional) The WP Menu args related to the menu set to be displayed.

Default value: array()

Return #

(array) $menu_items

Source #

File: includes/ld-misc-functions.php

Changelog #

Version Description
3.0.7 Introduced.