2011-07-11 17:37:07 -04:00
|
|
|
<?php
|
2013-05-12 08:57:18 -04:00
|
|
|
/**
|
|
|
|
* The WordPress Plugin Boilerplate.
|
|
|
|
*
|
|
|
|
* A foundation off of which to build well-documented WordPress plugins that also follow
|
|
|
|
* WordPress coding standards and PHP best practices.
|
|
|
|
*
|
|
|
|
* @package PluginName
|
|
|
|
* @author Your Name <email@example.com>
|
|
|
|
* @license GPL-2.0+
|
|
|
|
* @link TODO
|
|
|
|
*
|
|
|
|
* @wordpress-plugin
|
|
|
|
* Plugin Name: TODO
|
|
|
|
* Plugin URI: TODO
|
|
|
|
* Description: TODO
|
|
|
|
* Version: 1.0.0
|
|
|
|
* Author: TODO
|
|
|
|
* Author URI: TODO
|
|
|
|
* Author Email: TODO
|
|
|
|
* Text Domain: plugin-name-locale
|
|
|
|
* License: GPL-2.0+
|
|
|
|
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
* Domain Path: /lang/
|
|
|
|
*/
|
2011-07-11 17:37:07 -04:00
|
|
|
|
2013-05-13 06:38:57 -04:00
|
|
|
// If this file is called directly, abort.
|
2013-05-11 17:38:50 -04:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2013-05-12 10:12:50 -04:00
|
|
|
exit;
|
2013-05-11 17:38:50 -04:00
|
|
|
}
|
|
|
|
|
2013-05-12 14:03:02 -04:00
|
|
|
// TODO: replace `class-plugin-boilerplate.php` with the name of the actual plugin's class file
|
2013-05-12 08:57:18 -04:00
|
|
|
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-boilerplate.php' );
|
2012-07-13 22:14:34 -04:00
|
|
|
|
2013-05-13 08:43:08 -04:00
|
|
|
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
|
|
|
|
// TODO: replace PluginName with the name of the plugin defined in `class-plugin-boilerplate.php`
|
|
|
|
register_activation_hook( __FILE__, array( 'PluginName', 'activate' ) );
|
|
|
|
register_deactivation_hook( __FILE__, array( 'PluginName', 'deactivate' ) );
|
|
|
|
|
2013-05-12 09:18:27 -04:00
|
|
|
// TODO: replace PluginName with the name of the plugin defined in `class-plugin-boilerplate.php`
|
2013-05-07 22:11:51 -04:00
|
|
|
PluginName::get_instance();
|