Skip to content

wpt_settings_tabs_pages

github-actions[bot] edited this page Jun 20, 2026 · 4 revisions

Filter the array of tabs representings settings pages.

Auto-generated Example

add_filter(
   'wpt_settings_tabs_pages',
    function(
        array,
        string $current
    ) {
        // Your code here.
        return array;
    },
    10,
    2
);

Parameters

  • array $pages Array of pages with [ 'key' => 'title' ]. Other variable names: $pages
  • string $current Array key of current page.

Returns

array

Files

apply_filters( 'wpt_settings_tabs_pages', $pages, $current )

← All Hooks

Clone this wiki locally