Browse: Home / Hooks /

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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.