From b8231ac64bbe076df0bc21a92bf49eb8b7b05b4e Mon Sep 17 00:00:00 2001 From: Barry Ceelen Date: Thu, 12 Sep 2013 01:42:07 +0200 Subject: [PATCH] Removes reference to register_uninstall_hook from code comment Perhaps mention uninstall.php in stead? ``` // Register hooks that are fired when the plugin is activated or deactivated. // When the plugin is deleted, the uninstall.php file is loaded. ``` --- plugin-name/plugin-name.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index dc19807..cc9e5d2 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -32,7 +32,7 @@ if ( ! defined( 'WPINC' ) ) { // 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' ); -// 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. // 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' ) );