Clanbite Admin Since 1.4.0

apply_filters( 'clanbite_admin_rest_sub_tabs', array<int, array<string, mixed>> $sub_tabs, string $tab_id, array<string, mixed> $tab )

Filter: clanbite_admin_rest_sub_tabs — sub-navigation entries for one tab of Clanbite → Settings.

Runs once per tab (any type). Append arrays with id, label, slotId and optionally capability (default manage_options) and priority (default 10). Prefer clanbite_register_admin_sub_tab().

Filter PHP

Parameters

$sub_tabs (array<int, array<string, mixed>>)

Entries registered so far for this tab.

$tab_id (string)

Tab id (general, extensions, core-groups, ext-{slug}, or an integration tab id).

$tab (array<string, mixed>)

The tab descriptor.

Example

add_filter( 'clanbite_admin_rest_sub_tabs', function ( $sub_tabs, $tab_id, $tab ) {
	// Change $sub_tabs here.
	return $sub_tabs;
}, 10, 3 );

Defined in inc/admin/class-admin-rest.php

Changelog

VersionDescription
1.4.0Introduced.