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:
commit
895240626a
1 changed files with 1 additions and 1 deletions
|
@ -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' ) );
|
||||||
|
|
Loading…
Reference in a new issue