Skip to content

Commit

Permalink
Plugin is called on hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
vilmosioo committed Jan 1, 2014
1 parent 0f6bb7c commit ec889dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/templates/hyperion_plugin.php
Expand Up @@ -72,5 +72,6 @@ function deactivate( $network_wide ) {

} // end class

$GLOBALS['<%= _.camelize(name) %>_Plugin'] = <%= _.camelize(name) %>_Plugin::init();
add_action( 'plugins_loaded', array('<%= _.camelize(name) %>_Plugin', 'init' ) );

?>

0 comments on commit ec889dd

Please sign in to comment.