1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-23 04:13:53 +02:00

Merge pull request #76 from barryceelen/patch-1

Initialize plugin on plugins_loaded hook
This commit is contained in:
Tom McFarlin 2013-09-11 14:51:09 -07:00
commit 895240626a

View file

@ -38,4 +38,4 @@ register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) ); register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );
// TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php` // TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php`
Plugin_Name::get_instance(); add_action( 'plugins_loaded', array( 'Plugin_Name', 'get_instance' ) );