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:
parent
adc84722d7
commit
20adc011a9
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' ) );
|
||||
|
||||
// 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