-
-
Save tomjn/fc6fbc36d1b18712aed0 to your computer and use it in GitHub Desktop.
anonymous objects and bad things
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 | |
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