Skip to content

Instantly share code, notes, and snippets.

@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 / example.php
Last active January 21, 2020 12:19
A custom function that beautifies PHP print_r() outputs.
<?php
class A {
public function test() {}
}
$_func = function( $f ) use ( $p ) {};
$_resource = fopen( __DIR__ . '_temp.txt', 'w' );
$_oA = new A;
$_sMultiLine =<<<HERE
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
@michaeluno
michaeluno / amazon-auto-links-product-link-to-smile.php
Created July 26, 2018 10:33
Converts product links to the Amazon Smile domain, generated by the Amazon Auto Links WordPress plugin.
@michaeluno
michaeluno / amazon-auto-links-custom-rss-field.php
Created January 3, 2018 07:29
Adds a custom image url field in RSS2 output of Amazon Auto Links (WordPress plugin) product RSS2 feeds.
@michaeluno
michaeluno / APFTest_SortableCheckboxes.php
Created July 21, 2017 15:24
Demonstrates sortable set of checkboxes with different labels in Admin Page Framework.
<?php
class APFTest_SortableCheckboxes extends AdminPageFramework {
public function setUp() {
// To reset the options uncomment the next line.
// delete_option( get_class( $this ) );
$this->setRootMenuPage( __( 'Sortable Checkboxes', 'apf-test-sortable-checkboxes' ) );