Skip to content

Instantly share code, notes, and snippets.

@michaeluno
michaeluno / test-image-attributes_in_metabox.php
Created February 8, 2014 01:58
Testing the image field type with the attritbute_to_store key.
<?php
/* Plugin Name: Admin Page Framework - Test Image Attributes in Meta Box */
if ( ! class_exists( 'AdminPageFramework' ) ) {
include_once( dirname( dirname( __FILE__ ) ) . '/admin-page-framework/development/admin-page-framework.php' );
// include_once( dirname( __FILE__ ) . '/library/admin-page-framework.min.php' );
}
class APF_MetaBox_TestImageAttributes extends AdminPageFramework_MetaBox {
<?php
/* Plugin Name: Admin Page Framework - Test Multiple Same Field ID */
if ( ! class_exists( 'AdminPageFramework' ) ) {
include_once( dirname( dirname( __FILE__ ) ) . '/admin-page-framework/development/admin-page-framework.php' );
// include_once( dirname( __FILE__ ) . '/library/admin-page-framework.min.php' );
}
class APF_TestMultipleSameFieldID extends AdminPageFramework {
@michaeluno
michaeluno / tutorials-01-create-an-admin-page.php
Last active December 24, 2015 07:37
Creates an admin page with Admin Page Framework v3. This is an example plugin introduced in the tutorial, Create an Admin Page (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/01-create-an-admin-page/).
<?php
/*
Plugin Name: Admin Page Framework Tutorial 01 - Create an Admin Page
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Creates an admin page with Admin Page Framework v3
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.2
Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.0.0 or above
*/
@michaeluno
michaeluno / tutorials-02-create-a-form.php
Last active December 24, 2015 08:05
Creates a form in an admin page with Admin Page Framework v3. This is an example plugin introduced in the tutorial, Create a Form (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/02-create-a-form/).
<?php
/*
Plugin Name: Admin Page Framework Tutorial 02 - Create a Form
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Creates a form in an admin page with Admin Page Framework v3
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.2
Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.1.3 or above
*/
@michaeluno
michaeluno / tutorials-03-create-a-page-group.php
Last active December 24, 2015 08:28
Creates a page group with Admin Page Framework v3. This is an example plugin introduced in the tutorial, Create a Page Group (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/03-create-a-page-group/).
<?php
/*
Plugin Name: Admin Page Framework Tutorial 03 - Create a Page Group
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Creates a page group with Admin Page Framework v3
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.1
Requirements: PHP 5.2.4 or above, WordPress 3. or above. Admin Page Framework 3.0.0 or above
*/
@michaeluno
michaeluno / tutorials-04-create-inpage-tabs.php
Last active December 24, 2015 09:38
Creates in-page tabs with Admin Page Framework v3. This is an example plugin introduced in the tutorial, Create In-page Tabs (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/04-create-inpage-tabs/).
<?php
/*
Plugin Name: Admin Page Framework Tutorial 04 - Create In-page Tabs
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Creates in-page tabs with Admin Page Framework v3
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.1
Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.0.0 or above
*/
@michaeluno
michaeluno / tutorials-05-create-a-form-with-sections.php
Last active December 24, 2015 09:55
Organize a form with sections with Admin Page Framework v3. This is an example plugin introduced in the tutrial, Organize a Form with Sections (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/05-organize-a-form-with-sections/).
<?php
/*
Plugin Name: Admin Page Framework Tutorial 05 - Organize a Form with Sections
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Organize a form with sections with Admin Page Framework v3
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.1
Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.0.0 or above
*/
@michaeluno
michaeluno / tutorials-06-use-section-tabs-and-repeatable-fields.php
Last active December 24, 2015 11:12
Demonstrates the use section tabs and repeatable sections with Admin Page Framework. This is a sample plugin introduced in the tutorial, Use Section Tabs and Repeatable Sections (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/06-use-section-tabs-and-repeatable-sections/).
<?php
/*
* Plugin Name: Admin Page Framework Tutorial 06 - Use Advanced Section Settings
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Use section tabs and repeatable sections
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.1
* Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.0.0 or above
*/
@michaeluno
michaeluno / admin-page-framework-demo-field-validation.php
Last active August 29, 2015 14:00
Demonstrates the use of pre-defined validation callback methods in Admin Page Framework.
<?php
/* Plugin Name: Admin Page Framework Demo - Field Validation */
if ( ! class_exists( 'AdminPageFramework' ) ) {
include_once( dirname( dirname( __FILE__ ) ) . '/admin-page-framework/development/admin-page-framework.php' );
}
class APFDemo_FieldValidation extends AdminPageFramework {
public function setUp() {
@michaeluno
michaeluno / tutorials-07-validate-single-field.php
Last active December 25, 2015 01:17
Demonstrates validating a single field of the form created by the framework. This is a sample plugin introduced in the tutorial, Validate Submitted Form Data of a Single Field (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/07-validate-submitted-form-data-of-a-single-field/).
<?php
/*
* Plugin Name: Admin Page Framework Tutorial 07 - Validate Single Field
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Validates a single field of the form created by the framework.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
* Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.0.6 or above
*/