Skip to content

WP-OOP-Settings-API is a Settings API wrapper built with Object Oriented Programming practices.

License

Notifications You must be signed in to change notification settings

mihdan/wp-oop-settings-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress OOP Settings API

Tweet for help GitHub stars GitHub followers — ☝️ 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 &amp; 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

About

WP-OOP-Settings-API is a Settings API wrapper built with Object Oriented Programming practices.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages

  • PHP 100.0%