Admin Form Framework

0

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 quick

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

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.