Skip to content

Instantly share code, notes, and snippets.

@tomjn
Created Aug 24, 2013
Embed
What would you like to do?
anonymous objects and bad things
<?php
class do_stuff {
function run() {
exit;
}
}
add_action( 'init', array( new do_stuff(), 'run' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment