Admin Form Framework

plugin banner

This plugin provides a wrapper for the WordPress Settings API that is a much easier, faster and extensible way of building your settings forms.

Author:Dan Stefancu (profile at wordpress.org)
WordPress version required:3.8
WordPress version tested:4.3.1
Plugin version:1.2.3
Added to WordPress repository:07-01-2014
Last updated:29-09-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://dreamproduction.com/wordpress/admin-fo...
Total downloads:1 258
plugin download
Click to start download

This plugin will help you quickly set up a standard WordPress settings page for your project, be it a theme or a plugin. That's it!

Below is a "Hello World" piece of code to quickly get you an idea. It will generate a standard settings page with a checkbox, complete markup, save logic.

<?php 

add_action( 'init', 'my_options_create_page', 11 );

function my_options_create_page() {
  $options_page = new Aff();

  // Add a checkbox
  $options_page->add_field(
    array(
      'name'        => 'simple_checkbox',
      'label'       => __( 'Is this plugin awesome?', 'textdomain' ),
      'type'        => 'checkbox',
      'description' => __( 'Help your users with a nice description.', 'textdomain' ),
      'section'     => 'general', // Optional. Default section. You can add new ones as easily as adding a field.
    )
  );

  // Render the page - this is mandatory
  $options_page->init();

?>

There are a zillion options plugins out there. Why this?

All plugins will inevitably have their limitations, but Admin Form Framework is written in form of an object that can be easily extended to suit your needs. This is what we use internally at Dream Production.

Get started

For a complete example / settings page template, open up the included my_options.php file from examples folder.


FAQ
ChangeLog