1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 11:53:53 +02:00

updating the code comments as per the handbook

Signed-off-by: Tom McFarlin <tom@tommcfarlin.com>
This commit is contained in:
Tom McFarlin 2014-04-11 10:36:57 -04:00
parent 3bee4f4272
commit e91be4101d

View file

@ -1,6 +1,8 @@
<?php
/**
* @TEAM: http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#1-functions-and-class-methods
* @TODO: Short description (no period for file headers)
*
* @TODO: Long description.
*
* @package Plugin_Name
* @author Your Name <email@example.com>
@ -12,7 +14,7 @@
* Plugin Name: @TODO
* Plugin URI: @TODO
* Description: @TODO
* Version: 1.0.0
* Version: @TODO
* Author: @TODO
* Author URI: @TODO
* Text Domain: plugin-name-locale
@ -24,4 +26,20 @@
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
}
/**
* Includes the plugin activation class that runs during plugin activation.
*/
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name-activator.php' );
/**
* Includes the plugin deactivation class that runs during plugin deactivation.
*/
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name-deactivator.php' );
/** This action is documented in includes/class-plugin-name-activator.php */
register_activation_hook( __FILE__, array( 'Plugin_Name_Activator', 'activate' ) );
/** This action is documented in includes/class-plugin-name-deactivator.php */
register_activation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactivate' ) );