learndash_header_tab_menu

apply_filters( 'learndash_header_tab_menu',  array $header_tabs_data,  string $menu_tab_key,  string $screen_post_type )

Filters the list of header tabs data.


Description #


Parameters #

$header_tabs_data

(array) An array of header tabs data.

$menu_tab_key

(string) Menu tab key.

$screen_post_type

(string) Screen post type slug.


Source #

File: includes/admin/class-learndash-admin-menus-tabs.php


Examples #

 <?php
/**
 * Example usage for learndash_header_tab_menu filter.
 */
add_filter(
	'learndash_header_tab_menu',
	function( $header_tabs_data, $menu_tab_key, $screen_post_type ) {
		// May add any custom logic using $header_tabs_data, $menu_tab_key, $screen_post_type.

		// Always return $header_tabs_data.
		return $header_tabs_data;
	},
	10,
	3
);