apply_filters( 'learndash_header_action_menu', array $action_menu, string $menu_tab_key, string $screen_post_type, array $header_tabs_data )
Filters admin settings header action menu.
Description #
Parameters #
- $action_menu
-
(array) An array of header action menu items.
- $menu_tab_key
-
(string) Menu tab key.
- $screen_post_type
-
(string) Screen post type slug.
- $header_tabs_data
-
(array) An array of header tabs data.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_header_action_menu filter. */ add_filter( 'learndash_header_action_menu', function( $action_menu, $menu_tab_key, $screen_post_type, $header_tabs_data ) { // May add any custom logic using $action_menu, $menu_tab_key, $screen_post_type, $header_tabs_data. // Always return $action_menu. return $action_menu; }, 10, 4 );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |