learndash_admin_tabs_on_page

apply_filters( 'learndash_admin_tabs_on_page',  array $admin_tabs,  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) Unused filter parameter.

$current_page_id

(string) Current page id.


Source #

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


Examples #

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