zarankumar / WordPress-Plugin-Settings-API-Template

Handy Template Class for creating option pages with the WordPress Settings API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordPress-Plugin-Settings-API-Template

Handy Template Class for creating tabbed navigation option pages with the WordPress Settings API.

About

WordPress Settings API is a... little dark hole, you can easily spend hours to setup a bunch of fields. This PHP Class let you create an option page by mostly tweaking a simple Array. It does support tabbed navigation.

Screenshot

Option Panel 1

Option Panel 2

Credits

This is largely based on this gist by @hlashbrooke. There are a few differences:

  • All options are saved in a single array
  • There's a getter method for the options
  • Accepts Plugin Name and Plugin Slug as parameters
  • No external assets required as there are no Image Upload and Color Picker fields (Sorry, but I don't need them most of the time)

About

Handy Template Class for creating option pages with the WordPress Settings API.

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%