learndash_login_menu_item

apply_filters( 'learndash_login_menu_item',  WP_Post $menu_item,  array $menu_args )

Filters login menu item.


Description #


Parameters #

$menu_item

(WP_Post) WP_Post object for menu item.

$menu_args

(array) An array of arguments related to menu being processed / displayed.


Source #

File: includes/ld-misc-functions.php


Examples #

 <?php
/**
 * Example usage for learndash_login_menu_item filter.
 */
add_filter(
	'learndash_login_menu_item',
	function( $menu_item, $menu_args ) {
		// May add any custom logic using $menu_item, $menu_args.

		// Always return $menu_item.
		return $menu_item;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.0.7 Introduced.