2011-07-12 00:37:07 +03:00
|
|
|
<?php
|
2013-05-12 15:57:18 +03: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+
|
2013-05-16 16:37:48 +03:00
|
|
|
* @link example.com
|
2013-05-12 15:57:18 +03:00
|
|
|
*
|
|
|
|
* @wordpress-plugin
|
|
|
|
* Plugin Name: TODO
|
2013-05-15 17:16:38 +03:00
|
|
|
* Plugin URI: TODO
|
2013-05-12 15:57:18 +03:00
|
|
|
* Description: TODO
|
2013-05-15 17:16:38 +03:00
|
|
|
* Version: 1.0.0
|
|
|
|
* Author: TODO
|
|
|
|
* Author URI: TODO
|
2013-05-12 15:57:18 +03:00
|
|
|
* Text Domain: plugin-name-locale
|
2013-05-15 17:16:38 +03:00
|
|
|
* License: GPL-2.0+
|
2013-05-12 15:57:18 +03:00
|
|
|
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
2013-05-15 17:18:02 +03:00
|
|
|
* Domain Path: /lang
|
2013-05-12 15:57:18 +03:00
|
|
|
*/
|
2011-07-12 00:37:07 +03:00
|
|
|
|
2013-05-13 13:38:57 +03:00
|
|
|
// If this file is called directly, abort.
|
2013-05-15 17:00:38 +03:00
|
|
|
if ( ! defined( 'WPINC' ) ) {
|
|
|
|
die;
|
2013-05-12 00:38:50 +03:00
|
|
|
}
|
|
|
|
|
2013-05-15 17:02:10 +03:00
|
|
|
// 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' );
|
2012-07-14 05:14:34 +03:00
|
|
|
|
2013-05-13 15:43:08 +03:00
|
|
|
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
|
2013-05-15 17:02:10 +03:00
|
|
|
// TODO: replace PluginName with the name of the plugin defined in `class-plugin-name.php`
|
2013-05-13 15:43:08 +03:00
|
|
|
register_activation_hook( __FILE__, array( 'PluginName', 'activate' ) );
|
|
|
|
register_deactivation_hook( __FILE__, array( 'PluginName', 'deactivate' ) );
|
|
|
|
|
2013-05-15 17:02:10 +03:00
|
|
|
// TODO: replace PluginName with the name of the plugin defined in `class-plugin-name.php`
|
2013-05-08 05:11:51 +03:00
|
|
|
PluginName::get_instance();
|