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 #
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. |