Download the PHP package ralfhortt/wp-settings without Composer
On this page you can find all versions of the php package ralfhortt/wp-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ralfhortt/wp-settings
More information about ralfhortt/wp-settings
Files in ralfhortt/wp-settings
Download ralfhortt/wp-settings
More information about ralfhortt/wp-settings
Files in ralfhortt/wp-settings
Vendor ralfhortt
Package wp-settings
Short Description A helper package for working with the WordPress Settings
License MIT
Package wp-settings
Short Description A helper package for working with the WordPress Settings
License MIT
Please rate this library. Is it a good library?
Informations about the package wp-settings
WordPress Settings API Composer Package
A helper package for working with the WordPress Settings API
Installation
composer require ralfhortt/wp-settings
Usage
Settings Page
The Settings Page approach uses the WordPress Settings API to create admin settings pages and subpages.
Basic Usage
Pages default to the Settings menu. Use a location method to place the page elsewhere (see Page Location).
Settings Page Configuration
Page Location
Choose where the settings page appears in the WordPress admin menu:
| Method | Admin menu |
|---|---|
optionsPage() |
Settings (default) |
themesPage() |
Appearance |
toolsPage() |
Tools |
pluginsPage() |
Plugins |
usersPage() |
Users |
topLevel($icon, $position) |
Top-level sidebar item |
subpageUnder($slug) |
Custom parent (escape hatch) |
Multiple Panel Tabs On One Page
When you register more than one panel on the same page, the page renders panel tabs automatically.
Notes:
- Panels become tabs only when at least two panels exist.
- A panel can contain multiple sections.
- Section order follows the order you define in your fluent chain.
Top-Level Menu Page
Advanced Usage
Settings Page Advanced Features
Options Storage
Check for a capability
Add a description
Retrieving data
Changelog
Unreleased
- Add
wysiwyg()field type - Add named page location methods:
optionsPage(),themesPage(),toolsPage(),pluginsPage(),usersPage()
v1.0.0
- Initial release
All versions of wp-settings with dependencies
PHP Build Version
Package Version
No informations.
The package ralfhortt/wp-settings contains the following files
Loading the files please wait ...