mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-11-05 21:32:26 +02:00
2cf4ba8223
this helps with cleaner diffs. It's also on one of the PSRs, and it's one of the WPCS rules. (ht @garyjones for the reminder) Signed-off-by: Tom McFarlin <tom@tommcfarlin.com>
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* TODO: Short description (no period for file headers)
|
|
*
|
|
* TODO: Long description.
|
|
*
|
|
* @package Plugin_Name
|
|
* @author Your Name <email@example.com>
|
|
* @license GPL-2.0+
|
|
* @link http://example.com
|
|
* @copyright 2014 Your Name or Company Name
|
|
*
|
|
* @wordpress-plugin
|
|
* Plugin Name: TODO
|
|
* Plugin URI: TODO
|
|
* Description: TODO
|
|
* Version: TODO
|
|
* Author: TODO
|
|
* Author URI: TODO
|
|
* Text Domain: plugin-name-locale
|
|
* License: GPL-2.0+
|
|
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
|
* Domain Path: /languages
|
|
*/
|
|
|
|
// 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' ) );
|