Created
October 29, 2013 15:38
-
-
Save holisticnetworking/7217059 to your computer and use it in GitHub Desktop.
Sample object and call for WordPress' functions.php file:
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
class ParentFunctions { | |
function setup() { | |
// Cleverness goes here | |
} | |
/* Giddyup */ | |
public function ParentFunctions() { | |
// Actions and filters: | |
add_action( 'after_setup_theme', array( &$this, 'setup' ) ); | |
} | |
} | |
// Call our function and get the party started: | |
$reactive = new ParentFunctions(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment