Skip to content
Docs
Get RestroPress

Filter

rpress_tools_tabs

Updated
On this page

Filters the tabs shown on the RestroPress Tools page.

Runs in rpress_get_tools_tabs after the core tabs have been added: Health Check, Data Repair, Menu Utilities, Order Utilities, Customer & Access and Diagnostics, plus Beta Versions when an extension reports beta support. Each entry maps a tab slug to its label. A new tab needs a callback on the rpress_tools_tab_{$active_tab} action to render its panel.

Parameters#

ParameterTypeDescription
$tabsarrayAssociative array of tab slug => tab label.

Return value#

array. The tab slug => label array.

Example#

function my_add_tools_tab( $tabs ) {
	$tabs['my_tab'] = __( 'My Tool', 'my-plugin' );
	return $tabs;
}
add_filter( 'rpress_tools_tabs', 'my_add_tools_tab' );

Source#

Applied in:

  • includes/admin/tools.php (line 81), in rpress_get_tools_tabs()

See also#

  • rpress_tools_tab_%7B%24active_tab%7D
Was this page helpful?