1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-11-01 03:12:58 +02:00
WordPress-Plugin-Boilerplate/plugin-name/plugin-name.php

41 lines
1.3 KiB
PHP
Raw Normal View History

2011-07-12 00:37:07 +03:00
<?php
/**
* 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 Plugin_Name
* @author Your Name <email@example.com>
* @license GPL-2.0+
2013-05-16 16:56:20 +03:00
* @link http://example.com
* @copyright 2013 Your Name or Company Name
*
* @wordpress-plugin
* Plugin Name: TODO
* Plugin URI: TODO
* Description: TODO
* Version: 1.0.0
* 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
2013-05-15 17:18:02 +03:00
* Domain Path: /lang
*/
2011-07-12 00:37:07 +03:00
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// 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
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
// TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php`
register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );
// TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php`
Plugin_Name::get_instance();