mihdan / wp-oop-settings-api
WP-OOP-Settings-API is a Settings API wrapper built with Object Oriented Programming practices.
Fund package maintenance!
www.kobzarev.com/donate
Requires
- php: >=7.4
- ext-json: *
Requires (Dev)
- humanmade/psalm-plugin-wordpress: ^2.0
- php-coveralls/php-coveralls: ^v2.4
- phpcompatibility/php-compatibility: ^9.3
- phpcompatibility/phpcompatibility-wp: ^2.1
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.6
- vimeo/psalm: ^4.20
- wp-coding-standards/wpcs: ^2.3
README
WordPress OOP Settings API
— ☝️ Make sure you ⭐ and 👀 this repository!
Ever wanted to build custom settings inside your WordPress plugin or theme and didn't like the non-DRY approach for creating custom settings via WordPress API? Well, that's why and when I wrote this OOP Wrapper for WordPress Settings API. 🎊
Documentation
Sidebar
$wposa->add_sidebar_card( [ 'id' => 'donate', 'title' => __( 'Enjoyed WPOSA?', 'wposa' ), 'desc' => __( '<p>Please leave us a <a href="https://wordpress.org/support/plugin/mihdan-index-now/reviews/#new-post" target="_blank" title="Rate & review it">★★★★★</a> rating. We really appreciate your support</p>', 'wposa' ), ] );
Screenshots
TODO:
- Basic Settings Page
- Tabs on Settings Page with JS
- Tabs on Settings Page with JS
- Documentation for code workflow
- Create Field:
text
- Create Field:
textarea
- Create Field:
url
- Create Field:
number
- Create Field:
checkbox
- Create Field:
multicheck
- Create Field:
radio
- Create Field:
select
- Create Field:
html
- Create Field:
wysiwyg
- Create Field:
file
- Create Field:
image
- Create Field:
password
- Create Field:
color
- Tutorials
- Blog post
- Documentation
- Re-factor the code with WP Standards
- Re-factor the code into classes
License
Release under GNU GPL v2.0
Credits
@AhmadAwais, @deviorobert, @MaedahBatool AND @WordPress, @tareq1988, @royboy789, @twigpress, @mihdan