apply_filters( 'learndash_login_menu_item_atts', array $shortcode_atts, WP_Post $menu_item, array $menu_args )
Filters menu_item attributes before they are applied.
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_atts filter.
*/
add_filter(
'learndash_login_menu_item_atts',
function( $shortcode_atts, $menu_item, $menu_args ) {
// May add any custom logic using $shortcode_atts, $menu_item, $menu_args.
// Always return $shortcode_atts.
return $shortcode_atts;
},
10,
3
);
Changelog #
| Version | Description |
|---|---|
| 2.0.7 | Introduced. |