1
0
Fork 0
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:
Tom McFarlin 2013-09-23 04:56:38 -07:00
commit 1d4de289b6

View file

@ -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' ) );