apply_filters( 'learndash_login_menu_item_process', boolean $should_process, WP_Post $menu_item, array $menu_args )
Filters whether to process a menu_item or not.
Description #
Parameters #
- $should_process
-
(boolean) Process this menu item. Return true if the menu should be processed otherwise false.
- $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_process filter. */ add_filter( 'learndash_login_menu_item_process', function( $should_process, $menu_item, $menu_args ) { // May add any custom logic using $should_process, $menu_item, $menu_args. // Always return $should_process. return $should_process; }, 10, 3 );
Changelog #
Version | Description |
---|---|
3.0.7 | Introduced. |