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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 #
Version | Description |
---|---|
2.0.7 | Introduced. |