diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index cc9e5d2..cf69120 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -33,6 +33,7 @@ if ( ! defined( 'WPINC' ) ) { require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' ); // 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` register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );