From af2bd993efbd43274a7ae11804bc68fead029c41 Mon Sep 17 00:00:00 2001 From: Barry Date: Thu, 12 Sep 2013 17:58:52 +0200 Subject: [PATCH] Mention uninstall.php in code comment --- plugin-name/plugin-name.php | 1 + 1 file changed, 1 insertion(+) 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' ) );