mihdan/wp-oop-settings-api

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

2.0.0 2023-03-24 16:24 UTC

This package is auto-updated.

Last update: 2024-04-24 18:48:49 UTC


README

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