WP-Admin Tabbed Settings Pages (Polyfill)
A polyfill for Trac #51086, bringing tabbed settings pages into WP-Admin.
by Steve Grunwell · github.com/stevegrunwell/wp-admin-tabbed-settings-pages · website
★ 14stars
46kcomposer installs
4forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/stevegrunwell/wp-admin-tabbed-settings-pages/archive/refs/heads/develop.zipAlso on Packagist as stevegrunwell/wp-admin-tabbed-settings-pages:
composer require stevegrunwell/wp-admin-tabbed-settings-pagesFrom the readme
WP-Admin Tabbed Settings Pages (Polyfill)
This package contains a polyfill for WordPress Core Trac ticket #51086, wherein a standard for tabbed settings pages within WP-Admin has been proposed.
The proposal centers around a new function as part of the Settings API: dotabbedsettingssections(), which is identical to dosettingssections() except that each section is rendered in a separate tab.
As a bonus, the included script respects the URL hash, enabling browser history for tabs as well as the ability to link directly to specific tabs!
Best of all, you don't have to wait for WordPress Core to accept the change to start using it today, as this package contains the same code (and is maintained by the person who submitted the Trac ticket). This version of the code is even designed to step aside if it detects the function within WordPress core sometime in the future!
Installation
To run this polyfill as a stand-alone WordPress plugin, grab the latest zip file and install it as you would any other WordPress plugin.
If you'd rather bundle this as a dependency in another plugin, you may load it via Composer:
It's worth noting that the composer.json does not include the plugin bootst
Read the full README on GitHub →