This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Admin Page Framework Tutorial 08 - Validate Submitted Form Data | |
* Plugin URI: http://en.michaeluno.jp/admin-page-framework | |
* Description: Validate the form data of a section. | |
* 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.6 or above | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! class_exists( 'LinkFieldType' ) ) : | |
class LinkFieldType extends AdminPageFramework_FieldType { | |
/** | |
* Defines the field type slugs used for this field type. | |
*/ | |
public $aFieldTypeSlugs = array( 'link', ); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Admin Page Framework Demo - Suppress Options | |
* Description: Demonstrates how to suppress the options in Admin Page Framework. | |
* Author: Michael Uno | |
* Author URI: http://michaeluno.jp | |
* Version: 1.1.0 | |
* Requirement: Admin Page Framework v3.1.0 or higher. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Admin Page Framework Demo - Default Option Values | |
* Description: Demonstrates how to set default options with the options_{instantiated class name} hook in Admin Page Framework | |
* Author: Michael Uno | |
* Author URI: http://michaeluno.jp | |
* Version: 1.0.1 | |
* Requirement: Admin Page Framework v3.1.0 or higher. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Plugin Name: Admin Page Framework Test - Featured Image Conflict */ | |
if ( ! class_exists( 'AdminPageFramework' ) ) { | |
$_sFrameworkPath = 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 ( file_exists( $_sFrameworkPath ) ) { | |
include( $_sFrameworkPath ); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ) { |