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 / 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 / admin-page-framework-demo-custom-field-values.php
Last active August 29, 2015 14:02
Demonstrates how to set a custom value to the field created by Admin Page Framework.
<?php
/*
* Plugin Name: Admin Page Framework Demo - Setting Custom Field Values
* Description: Demonstrates how to set a custom value to the field created by Admin Page Framework.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.1
* Requirement: Admin Page Framework v3.1.0 or higher.
*/
@michaeluno
michaeluno / demo-custom-repeatable-field-values.php
Created June 28, 2014 08:15
This shows how to set custom values to repeatable fields created by Admin Page Framework.
<?php
/* Plugin Name: Admin Page Framework - Setting Custom Repeatable Field Values */
if ( ! class_exists( 'AdminPageFramework' ) ) {
include_once( dirname( __FILE__ ) . '/class/admin-page-framework.min.php' );
}
class AFFTest_CustomRepeatableFieldValues extends AdminPageFramework {
public function setUp() {
@michaeluno
michaeluno / admin-page-framework-demo-tabbed-sections-in-meta-boxes.php
Created October 18, 2014 10:35
Demonstrates how to add tabbed sections in meta boxes with Admin Page Framewrok.
<?php
/*
Plugin Name: Admin Page Framework Demo - Tabbed Sections in Meta Boxes
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Demonstrates how to add tabbed sections in meta boxes with Admin Page Framework.
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.0
Requirements: Admin Page Framework
*/
@michaeluno
michaeluno / admin-page-framework-demo-repeatable-tabbed-sections-inmeta-boxes.php
Created October 18, 2014 10:36
Demonstrates how to add repeatable tabbed sections in meta boxes with Admin Page Framework.
<?php
/*
Plugin Name: Admin Page Framework Demo - Repeatable Tabbed Sections in Meta Boxes
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Demonstrates how to add repeatable tabbed sections in meta boxes with Admin Page Framework.
Author: Michael Uno
Author URI: http://michaeluno.jp
Version: 1.0.0
Requirements: Admin Page Framework
*/
@michaeluno
michaeluno / admin-page-framework-test-featured-image-conflict.php
Last active August 29, 2015 14:08
This is a test plugin that tests if a image field type in a custom post meta box of Admin Page Framework causes a conflict with the featured image's image uploader.
@michaeluno
michaeluno / fetch-tweets-modify-widget-title-tag.php
Created November 12, 2014 22:10
A small WordPress plugin that modifies the title tag of the Fetch Tweets plugin widgets.
<?php
/**
* Plugin Name: Fetch Tweets - Modify Widget Title Tag
* Plugin URI: http://en.michaeluno.jp/
* Description: Modifies the title tag of the Fetch Tweets plugin widgets.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
*/
function fetch_tweets_modify_widget_title_tag( $aParams ) {
@michaeluno
michaeluno / admin-page-framework-test-custom-section-tabs.php
Created December 9, 2014 15:17
Displays form sections of Admin Page Framework with custom groups.
<?php
/* Plugin Name: Admin Page Framework Test - Custom Seciton Tabs */
// Include the library file. Set your file path here.
$_sLibraryPath = defined( 'WP_DEBUG' ) && WP_DEBUG
? dirname( dirname( __FILE__ ) ) . '/admin-page-framework/development/admin-page-framework.php'
: dirname( dirname( __FILE__ ) ) . '/admin-page-framework/library/admin-page-framework.min.php';
if ( ! class_exists( 'AdminPageFramework' ) && ! include( $_sLibraryPath ) ) {
return;
}