Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Uno michaeluno

View GitHub Profile
@michaeluno
michaeluno / test-image-attributes_in_metabox.php
Created Feb 8, 2014
Testing the image field type with the attritbute_to_store key.
View test-image-attributes_in_metabox.php
<?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 {
View test-multiple-same-field-ids.php
<?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 Aug 29, 2015
Demonstrates the use of pre-defined validation callback methods in Admin Page Framework.
View admin-page-framework-demo-field-validation.php
<?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 Aug 29, 2015
Demonstrates how to set a custom value to the field created by Admin Page Framework.
View admin-page-framework-demo-custom-field-values.php
<?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 Jun 28, 2014
This shows how to set custom values to repeatable fields created by Admin Page Framework.
View demo-custom-repeatable-field-values.php
<?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 Oct 18, 2014
Demonstrates how to add tabbed sections in meta boxes with Admin Page Framewrok.
View admin-page-framework-demo-tabbed-sections-in-meta-boxes.php
<?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 Oct 18, 2014
Demonstrates how to add repeatable tabbed sections in meta boxes with Admin Page Framework.
View admin-page-framework-demo-repeatable-tabbed-sections-inmeta-boxes.php
<?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 Aug 29, 2015
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.
View admin-page-framework-test-featured-image-conflict.php
@michaeluno
michaeluno / fetch-tweets-modify-widget-title-tag.php
Created Nov 12, 2014
A small WordPress plugin that modifies the title tag of the Fetch Tweets plugin widgets.
View fetch-tweets-modify-widget-title-tag.php
<?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 Dec 9, 2014
Displays form sections of Admin Page Framework with custom groups.
View admin-page-framework-test-custom-section-tabs.php
<?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;
}