Download the PHP package youniwemi/wp-settings-kit without Composer
On this page you can find all versions of the php package youniwemi/wp-settings-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download youniwemi/wp-settings-kit
More information about youniwemi/wp-settings-kit
Files in youniwemi/wp-settings-kit
Package wp-settings-kit
Short Description WP Settings Kit is a lightweight library for easily creating WordPress settings pages and Post metaboxes.
License GPL-2.0
Informations about the package wp-settings-kit
WordPress Settings Kit - Lightweight library for easily creating WordPress Settings Pages and Post Metaboxes
— :point_up: Make sure you :star: and :eyes: this repository!
Ever wanted to build custom settings (or metaboxes) inside your WordPress plugin or theme and didn't like the non-DRY approach for creating custom settings and metaboxes via WordPress API? Well, this package is an attempt to fix this. 🎊
Screenshots
COMPOSER INSTALL
-
You can install the library using composer
- You'll be able to use WP_Settings_Kit class after requiring vendor/autoload.php
USAGE
USAGE For Setting Page
-
Prepare an array of options then instanciate WP_Settings_Kit
- Once the options are saved, constants MY_AWESOME_FEATURE_ACTIVE will be available and will be able to set the first setting MY_AWESOME_FEATURE_FIRST_SETTING
USAGE For Post Metabox
-
Prepare an array of options as well as the metabox definition then instanciate WP_Settings_Kit
- Once the metabox is saved, fields will be saved as post metas : MY_AWESOME_FEATURE_FIRST_ACTIVE and MY_AWESOME_FEATURE_FIRST_SETTING
TODO:
- [x] Basic Settings Page
- [x] Tabs on Settings Page with JS
- [x] Tabs on Settings Page with JS
- [x] Documentation for code workflow
- [x] Create Field:
text
- [x] Create Field:
textarea
- [x] Create Field:
url
- [x] Create Field:
number
- [x] Create Field:
checkbox
- [x] Create Field:
multicheck
- [x] Create Field:
radio
- [x] Create Field:
select
- [x] Create Field:
html
- [x] Create Field:
wysiwyg
- [x] Create Field:
file
- [x] Create Field:
image
- [x] Create Field:
password
- [x] Create Field:
color
- [x] Create Field:
email
- [x] Create Field:
date
- [x] Create Field (generated content with callback):
content
- [x] Create Field:
range
- [x] Support for post metabox
- [x] Re-factor the code with WP Standards
- [ ] Tutorials
- [ ] Blog post
- [ ] Documentation
License
Release under GNU GPL v2.0
Credits
This package is a fork of https://github.com/ahmadawais/WP-OOP-Settings-API based on the work of @tareq1988 https://github.com/tareq1988/wordpress-settings-api-class
@AhmadAwais, @deviorobert, @MaedahBatool AND @WordPress, @tareq1988, @royboy789, @twigpress, @rahal.
🙌 Youniwemi
This open source fork is maintained by the help of awesome businesses listed below :
This package is used in the following wordpress plugins
For anything else, tweet at @rahalaboulfeth