mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
Merge pull request #77 from barryceelen/patch-1
Removes reference to register_uninstall_hook from code comment
This commit is contained in:
commit
1d4de289b6
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
// TODO: replace `class-plugin-name.php` with the name of the actual plugin's class file
|
// TODO: replace `class-plugin-name.php` with the name of the actual plugin's class file
|
||||||
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' );
|
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' );
|
||||||
|
|
||||||
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
|
// Register hooks that are fired when the plugin is activated or deactivated.
|
||||||
|
// When the plugin is deleted, the uninstall.php file is loaded.
|
||||||
// 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`
|
||||||
register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) );
|
register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) );
|
||||||
register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );
|
register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );
|
||||||
|
|
Loading…
Reference in a new issue