Skip to content

Instantly share code, notes, and snippets.

@michaeluno
michaeluno / task-scheduler-hung-routine-cleaner.php
Created June 16, 2017 06:41
Cleans up hung routines of Task Scheduler WordPress plugin.
<?php
/**
* Plugin Name: Task Scheduler - Hung Routine Cleaner
* Description: Cleans up hung routines.
* Author: Michael Uno
* Version: 1.0.0
*/
class TaskSchedulerHungRoutineCleaner {
@michaeluno
michaeluno / fetch-tweets-modify-count.php
Created December 7, 2016 10:22
A WordPress plugin that modifies the `count` parameter value of the API request query string made by the Fetch Tweets plugin.
<?php
/**
* Plugin Name: Fetch Tweets - Modify Count
* Description: Modifies the `count` parameter value of the API request query string.
* Version: 0.0.1
*/
class FetchTweetsModifyCount {
public function __construct() {
@michaeluno
michaeluno / AdminPageFramework_FormBeta_frontend.php
Last active November 28, 2016 08:41
Demonstrates front-end forms using Admin Page Framework.
<?php
class AdminPageFramework_FormBeta_frontend extends AdminPageFramework_Form {
/**
* Stores sub-object class names.
*
*
* @since 3.8.11
@michaeluno
michaeluno / fetch-tweets-delete-options
Created October 1, 2016 03:19
Deletes options of the Fetch Tweets plugin of WordPress.
<?php
/**
* Plugin Name: Fetch Tweets - Delete Options
* Plugin URI: http://en.michaeluno.jp/fetch-tweets
* Description: Deletes options of the Fetch Tweets plugin.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
*/
@michaeluno
michaeluno / admin-page-framework-add-a-main-menu.php
Last active April 16, 2023 00:35
Demonstrates how to add sub-menu pages from a separate plugin.
<?php
/**
* Plugin Name: Admin Page Framework Demo - Add a Main Menu
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Adds a main menu and a sub-menu page.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
*
*/
@michaeluno
michaeluno / admin-page-framework-demo-dynami-dropdown-in-repeatable-sections.php
Last active November 6, 2016 15:30
Demonstrates how a drop-down list can be updated dynamically in repeatable sections using Admin Page Framework.
<?php
/**
* Plugin Name: Admin Page Framework Demo - Dynamic Drop-down in Repeatable Sections
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Demonstrates how a drop-down list can be updated dynamically in repeatable sections.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
*/
@michaeluno
michaeluno / admin-page-framework-ajax-fields.php
Created July 26, 2016 18:01
Demonstrates how form fields can be updated using Ajax with Admin Page Framework.
<?php
/**
* Plugin Name: Admin Page Framework Demo - Ajax FIelds
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Demonstrates how fields can be updated with Ajax.
* 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.0 or above
*/
@michaeluno
michaeluno / admin-page-framework-tutorial-14-taxonomy-fields.php
Created June 5, 2016 07:13
Demonstrates the use of custom taxonomy fields with Admin Page Framework, a WordPress libaray.
<?php
/**
* Plugin Name: Admin Page Framework Tutorial 14 - Taxonomy Fields
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Demonstrates the use of custom taxonomy fields with Admin Page Framework.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
*/
@michaeluno
michaeluno / admin-page-framework-custom-text-after-form-submission.php
Last active November 6, 2016 15:34
Displays custom text after the form is submitted with Admin Page Framework, a wordpress plugin/theme framework.
<?php
/*
Plugin Name: Admin Page Framework - Custom Text After Form Submission
Plugin URI: http://en.michaeluno.jp/admin-page-framework
Description: Displays custom text after the form is submitted.
Author: Michael Uno
*/
// Include the library file. Set your file path here.
include( dirname( dirname( __FILE__ ) ) . '/admin-page-framework/library/apf/admin-page-framework.php' );
@michaeluno
michaeluno / APF_Test_NamespaceHooks.php
Last active March 27, 2016 06:45
Testing name space hooks with Admin Pag Framework.
<?php
namespace Foo\Bar;
class APF_Test_NamespaceHooks extends \AdminPageFramework {
/**
* Sest up pages.
*/
public function setUp() {