Browse: Home / Hooks /

learndash_admin_tabs_on_page

apply_filters( 'learndash_admin_tabs_on_page',  array $admin_tabs,  array $array,  string $current_page_id )

Filters List of admin tabs on a page.


Description #


Parameters #

$admin_tabs

(array) An array of admin tabs on a page.

$array

(array) Unused filter parameter.

$current_page_id

(string) Current page id.


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_admin_tabs_on_page filter.
 */
add_filter(
	'learndash_admin_tabs_on_page',
	function( $admin_tabs, $unused_param, $current_page_id ) {
		// May add any custom logic using $admin_tabs, , $current_page_id.

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

Changelog #

Changelog
Version Description
2.4.0 Introduced.