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: Cron Example for https://core.trac.wordpress.org/ticket/42660 | |
*/ | |
class Cron_example_42660 { | |
function __construct() { | |
add_action( 'admin_menu', array( $this, 'admin_menu' ) ); | |
add_action( 'cron_single_event', array( $this, 'cron_callback' ) ); | |
} |
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 | |
// mu-plugin for stepping through https://github.com/obenland/giphy-block/ | |
// has some dynamic modifications to avoid JS errors / use a better gif | |
class LiveDemo { | |
static $steps = array( | |
'425c485' => '0: Boilerplate', | |
'c98c358' => '1: Register a block', |
NewerOlder