WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Admin Form Framework

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

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.

Requires: 3.5 or higher
Compatible up to: 3.8.3
Last Updated: 2014-1-7
Downloads: 177

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.