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

Initialize plugin on plugins_loaded hook

This commit is contained in:
Barry Ceelen 2013-09-11 23:41:08 +02:00
parent adc84722d7
commit 20adc011a9

View file

@ -38,4 +38,4 @@ register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );
// 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' ) );