Contributors: moyu
Author URI: https://moyu.io
Tags: settings, options, api, framework
Requires at least: 3.8
Tested up to: 4.1
Stable tag: 4.1
License: GPLv2 or later
A simple framework which use WordPress Settings API for building WordPress theme and plugin options.
Easy options framework which uses the WordPress Settings API makes it easy to create an options panel in any WordPress theme and plugin. It is very extensible, and very easy to integrate with by other developers instead of creating an options panel from scratch. For the most important, it is free to use in both commercial and personal projects!
- text input
- email input
- number input
- password input
- date input
- textarea
- rich editor
- select
- post select (create a select field where the choices are pages + posts + your custom post types)
- image select (use images instead of radio buttons)
- checkbox (also include multicheck)
- radio
- repeater (create a set of sub fields)
- heading
- color picker
- html
- media upload
(Besides the include fields above, you also can set section tab content as custom html content or set section tab as a url link)
- Upload
Easy-Options-Framework
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- Include
sample-config.php
file in your themefunctions.php
or create your own option configures file.
- Copy the plugin to your theme / plugin
- Customize the directory and path settings(with trailing slash)
define('EOF_DIR', get_template_directory() . '/eof/‘);
define('EOF_URL', get_template_directory_uri() . ‘/eof/’);
require EOF_DIR . 'eof.php';
require EOF_DIR . 'sample-config.php';
- change file_get_contents() function to WordPress built-in HTTP API wp_remote_get()
- fix data saving bug
- Add data sanitization and validation
- Initial release