mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
updating the code comments as per the handbook
Signed-off-by: Tom McFarlin <tom@tommcfarlin.com>
This commit is contained in:
parent
3bee4f4272
commit
e91be4101d
1 changed files with 21 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
<?php
|
<?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
|
* @package Plugin_Name
|
||||||
* @author Your Name <email@example.com>
|
* @author Your Name <email@example.com>
|
||||||
|
@ -12,7 +14,7 @@
|
||||||
* Plugin Name: @TODO
|
* Plugin Name: @TODO
|
||||||
* Plugin URI: @TODO
|
* Plugin URI: @TODO
|
||||||
* Description: @TODO
|
* Description: @TODO
|
||||||
* Version: 1.0.0
|
* Version: @TODO
|
||||||
* Author: @TODO
|
* Author: @TODO
|
||||||
* Author URI: @TODO
|
* Author URI: @TODO
|
||||||
* Text Domain: plugin-name-locale
|
* Text Domain: plugin-name-locale
|
||||||
|
@ -25,3 +27,19 @@
|
||||||
if ( ! defined( 'WPINC' ) ) {
|
if ( ! defined( 'WPINC' ) ) {
|
||||||
die;
|
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' ) );
|
Loading…
Reference in a new issue