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()


Top ↑

Return Return

(array) $menu_items


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.