Skip to content

Instantly share code, notes, and snippets.

@michaeluno
michaeluno / tutorials-12-create-a-custom-post-type-and-custom-taxonomy.php
Last active June 27, 2023 19:57
Demonstrates how to create a custom post type and a custom taxonomy which belongs to it with Admin Page Framework. This is a sample plugin introduced in the tutorial Create a Custom Post Type and Custom Taxonomy (http://en.michaeluno.jp/admin-page-framework/tutorials-v3/12-create-a-custom-post-type-and-custom-taxonomy/).
<?php
/**
* Plugin Name: Admin Page Framework Tutorial 12 - Create a Custom Post Type and Custom Taxonomy
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Creates a custom post type and a custom taxonomy that belongs to it.
* 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
*/
@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 / auto-amazon-links-custom-product-url.php
Created February 22, 2023 08:47
An Auto Amazon Links extension WordPress plugin that allows you to ser a custom product URL.
@michaeluno
michaeluno / auto-amazon-links-rss-price-tag.aphp
Created October 5, 2022 06:13
Inserts a price tag in the unit RSS feeds of Auto Amazon Links
@michaeluno
michaeluno / AdminPage.php
Created January 30, 2022 12:03
This is a WordPress plugin that demonstrates custom collapsible sortable sections with Admin Page Framework.
<?php
namespace AdminPageFrameworkCustomSortableSections;
class AdminPage extends \AdminPageFramework {
public $sPageSlug = 'apf_custom_sortable_collapsible_sections';
public function setUp() {
@michaeluno
michaeluno / AdminPage.php
Created January 7, 2022 16:02
This is a WordPress plugin that demonstrates how dynamic CSV data are downloaded using the export button with Admin Page Framework.
<?php
namespace AdminPageFrameworkCSVDownload;
class AdminPage extends \AdminPageFramework {
public function setUp() {
$this->setRootMenuPage( 'Settings' );
@michaeluno
michaeluno / amazon-auto-links-prop-products-without-price.php
Last active August 6, 2021 14:20
An Amazon Auto Links extension plugin of WordPress that drops products if they don't have price information.
@michaeluno
michaeluno / amazon-auto-links-remove-parentheses-in-price-outputs.php
Last active November 16, 2020 09:12
An Amazon Auto Links, a WordPress plugin, extension plugin that removes a part enclosed in parentheses in price outputs.
@michaeluno
michaeluno / admin-page-framework-demo-supress-options.php
Last active September 25, 2020 18:15
Demonstrates how to suppress the options in Admin Page Framework. ( this requires v3.1.0 or above)
<?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.
*/
@michaeluno
michaeluno / admin-page-framework-demo-default-options.php
Last active September 25, 2020 18:10
Demonstrates how to set default options with the options_{instantiated class name} hook in Admin Page Framework
<?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.
*/