Skip to content

Instantly share code, notes, and snippets.

@holisticnetworking
Created October 29, 2013 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holisticnetworking/7217059 to your computer and use it in GitHub Desktop.
Save holisticnetworking/7217059 to your computer and use it in GitHub Desktop.
Sample object and call for WordPress' functions.php file:
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