[wp-trac] [WordPress Trac] #51086: Add native support for tabbed settings pages in WP Admin
WordPress Trac
noreply at wordpress.org
Thu Aug 20 20:07:36 UTC 2020
#51086: Add native support for tabbed settings pages in WP Admin
----------------------------+-----------------------------
Reporter: stevegrunwell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
There are a lot of plugins out there handling tabbed setting screens in
different ways, so it may be time to introduce a standard API for this
pattern.
This patch adds a new `do_tabbed_settings_sections()` function which works
just like the Settings API's `do_settings_sections()` function, but prints
each section heading as a tab/panel combination. In situations where
there's only one section to render, the new function will fall back to its
un-tabbed sibling.
The patch also includes a standard script for tabbing between different
setting sections, with support for linking directly to a particular tab
via the URL hash (e.g. !https://example.com/wp-admin/options-
general.php?page=some-settings-page#some-tab-ID).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51086>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list