Skip to content

Instantly share code, notes, and snippets.

@tomjn tomjn/gist:631548a24317c1603b79 Secret
Created Aug 20, 2013

What would you like to do?
class MyClass {
function __construct() {
add_action( 'admin_init',array( $this, 'getStuffDone' ) );
function getStuffDone() {
// .. This is where stuff gets done ..
$var = new MyClass();
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.