apply_filters( 'learndash_submenu', array $add_submenu )
Filters submenu array before it is registered.
Description #
Parameters #
- $add_submenu
-
(array) An array of submenu items.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_submenu filter. */ add_filter( 'learndash_submenu', function( $add_submenu ) { // May add any custom logic using $add_submenu. // Always return $add_submenu. return $add_submenu; } );
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |