WP Manifestindependent plugin directory
manifest / admin / wp-admin-tabbed-settings-pages

WP-Admin Tabbed Settings Pages (Polyfill) WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A polyfill for Trac #51086, bringing tabbed settings pages into WP-Admin.

★ 14stars
46kcomposer installs
v0.2.0latest · 6 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/stevegrunwell/wp-admin-tabbed-settings-pages/archive/refs/heads/develop.zip

On Packagist as stevegrunwell/wp-admin-tabbed-settings-pages:

composer require stevegrunwell/wp-admin-tabbed-settings-pages
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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: do_tabbed_settings_sections(), which is identical to do_settings_sections() except that each section is rendered in a separate tab.

A side-by-side comparison of the classic, non-tabbed settings UI and the tabbed version

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:

$ composer require stevegrunwell/wp-admin-tabbed-settings-pages

It's worth noting that the composer.json does not include the plugin bootstrap file in the autoloader, so it's necessary to explicitly require this file after WordPress has been loaded (such as when your plugin is loading):

// Please adjust this path as appropriate.
require_once __DIR__ . '/vendor/stevegrunwell/wp-admin-tabbed-settings-pages/wp-admin-tabbed-settings-pages.php';

Usage

As long as you're leveraging the WordPress Settings API, the only change necessary is replacing your call to do_settings_sections($page) with do_tabbed_settings_sections($page).

For an example of how this might look, please see the WP-Admin Tabbed Settings Pages demo plugin attached to the Trac ticket.

Releases

4 releases.

Tag
Published
v0.2.0 latest
Aug 27, 2020 6 years ago
Aug 21, 2020 6 years ago
Aug 21, 2020 6 years ago
Aug 21, 2020 6 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

WP-Admin Tabbed Settings Pages (Polyfill) 0.2.0 · audited by WP Registry

No security issues found.

Audited release
0.2.0
Findings
none
Worst severity
—
Content hash
ef9fc31f28acc7c689b3f1cb…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.