2014-04-09 23:22:44 +03:00
|
|
|
<?php
|
2014-05-01 05:55:42 +03:00
|
|
|
|
2014-04-09 23:22:44 +03:00
|
|
|
/**
|
2014-04-26 02:00:08 +03:00
|
|
|
* Short Description (no period for file headers)
|
2014-04-11 17:36:57 +03:00
|
|
|
*
|
2014-04-26 02:00:08 +03:00
|
|
|
* Long Description.
|
2014-04-09 23:22:44 +03:00
|
|
|
*
|
2014-05-03 22:07:24 +03:00
|
|
|
* @package Plugin_Name
|
|
|
|
* @author Your Name or Company Name <email@domain.com>
|
|
|
|
* @license GPL-2.0+
|
2014-05-09 01:09:50 +03:00
|
|
|
* @link http://example.com/plugin-name
|
2014-05-03 22:07:24 +03:00
|
|
|
* @copyright 2014 Your Name or Company Name
|
2014-04-09 23:22:44 +03:00
|
|
|
*
|
|
|
|
* @wordpress-plugin
|
2014-05-05 07:16:52 +03:00
|
|
|
* Plugin Name: WordPress Plugin Boilerplate
|
|
|
|
* Plugin URI: http://example.com/plugin-name-uri
|
2014-05-03 22:07:24 +03:00
|
|
|
* Description: This is a short description of what the plugin does. It's displayed in the WordPress dashboard.
|
|
|
|
* Version: 1.0.0
|
|
|
|
* Author: Your Name or Your Company
|
|
|
|
* Author URI: http://example.com
|
2014-04-09 23:22:44 +03:00
|
|
|
* 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;
|
2014-04-11 17:36:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-05-09 01:09:50 +03:00
|
|
|
* The plugin activation class that runs during plugin activation.
|
2014-04-11 17:36:57 +03:00
|
|
|
*/
|
2014-04-27 00:42:21 +03:00
|
|
|
require_once plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name-activator.php';
|
2014-04-11 17:36:57 +03:00
|
|
|
|
|
|
|
/**
|
2014-05-09 01:09:50 +03:00
|
|
|
* The plugin deactivation class that runs during plugin deactivation.
|
2014-04-11 17:36:57 +03:00
|
|
|
*/
|
2014-04-27 00:42:21 +03:00
|
|
|
require_once plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name-deactivator.php';
|
2014-04-11 17:36:57 +03:00
|
|
|
|
|
|
|
/** 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 */
|
2014-04-26 01:39:31 +03:00
|
|
|
register_activation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactivate' ) );
|
2014-05-03 22:26:22 +03:00
|
|
|
|
2014-05-05 07:16:52 +03:00
|
|
|
/**
|
2014-05-09 01:09:50 +03:00
|
|
|
* The base class used to define certain functionality and attributes used among
|
|
|
|
* the dashboard-specific and public-facing functionality.
|
2014-05-05 07:16:52 +03:00
|
|
|
*/
|
2014-05-09 01:09:50 +03:00
|
|
|
require_once plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name.php';
|
2014-05-03 22:26:22 +03:00
|
|
|
|
2014-05-05 07:16:52 +03:00
|
|
|
/**
|
2014-06-26 23:19:57 +03:00
|
|
|
* Short description. (use period)
|
|
|
|
*
|
|
|
|
* Long description.
|
|
|
|
*
|
|
|
|
* @since 1.0.0
|
2014-05-05 07:16:52 +03:00
|
|
|
*/
|
2014-05-09 06:33:47 +03:00
|
|
|
function run_plugin_name() {
|
2014-05-03 22:26:22 +03:00
|
|
|
|
2014-05-09 06:33:47 +03:00
|
|
|
$plugin = new Plugin_Name();
|
|
|
|
$plugin->run();
|
2014-05-03 22:26:22 +03:00
|
|
|
|
2014-05-09 06:33:47 +03:00
|
|
|
}
|
2014-05-09 01:09:50 +03:00
|
|
|
|
2014-05-09 06:33:47 +03:00
|
|
|
run_plugin_name();
|