Skip to content

Instantly share code, notes, and snippets.

@tomjn tomjn/gist:7e4bd88eccd06b03c4f1 Secret
Last active Dec 21, 2015

Embed
What would you like to do?
<?php
class Printer extends IHook_Object {
public $message ='';
public function run_hook() {
echo $this->message;
}
}
// print a message in the footer
$print = new Printer( 'wp_footer' );
$print->message = 'hello world!';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.