learndash_addon_tab_items_{$this->current_tab}

apply_filters( "learndash_addon_tab_items_{$this->current_tab}",  array $tab_items )

Filters add-on items for a tab.


Description #

The dynamic part of the hook refers to the name of the current tab.


Parameters #

$tab_items

(array) An array of tab list items.


Source #

File: includes/admin/class-learndash-admin-addons-list-table.php


Examples #

 <?php
/**
 * Example usage for learndash_addon_tab_items_{$this->current_tab} filter.
 */
add_filter(
	'learndash_addon_tab_items_learndash',
	function( $tab_items ) {
		// May add any custom logic using $tab_items.

		// Always return $tab_items.
		return $tab_items;
	}
);