1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-05-21 20:52:09 +03:00

replacing all instances of PluginName with PluginName as per the WordPress Coding Standards

fixes #61
This commit is contained in:
Tom McFarlin 2013-07-07 14:03:25 -04:00
parent f9ce10b207
commit 465603b5c8
5 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,7 @@
/** /**
* Plugin Name. * Plugin Name.
* *
* @package PluginName * @package Plugin_Name
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @license GPL-2.0+ * @license GPL-2.0+
* @link http://example.com * @link http://example.com
@ -14,10 +14,10 @@
* *
* TODO: Rename this class to a proper name for your plugin. * TODO: Rename this class to a proper name for your plugin.
* *
* @package PluginName * @package Plugin_Name
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
*/ */
class PluginName { class Plugin_Name {
/** /**
* Plugin version, used for cache-busting of style and script file references. * Plugin version, used for cache-busting of style and script file references.

View file

@ -5,7 +5,7 @@
* A foundation off of which to build well-documented WordPress plugins that also follow * A foundation off of which to build well-documented WordPress plugins that also follow
* WordPress coding standards and PHP best practices. * WordPress coding standards and PHP best practices.
* *
* @package PluginName * @package Plugin_Name
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @license GPL-2.0+ * @license GPL-2.0+
* @link http://example.com * @link http://example.com
@ -33,9 +33,9 @@ if ( ! defined( 'WPINC' ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' ); require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' );
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively. // 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-name.php` // TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php`
register_activation_hook( __FILE__, array( 'PluginName', 'activate' ) ); register_activation_hook( __FILE__, array( 'Plugin_Name', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'PluginName', 'deactivate' ) ); register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) );
// TODO: replace PluginName with the name of the plugin defined in `class-plugin-name.php` // TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php`
PluginName::get_instance(); Plugin_Name::get_instance();

View file

@ -2,7 +2,7 @@
/** /**
* Fired when the plugin is uninstalled. * Fired when the plugin is uninstalled.
* *
* @package PluginName * @package Plugin_Name
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @license GPL-2.0+ * @license GPL-2.0+
* @link http://example.com * @link http://example.com

View file

@ -5,7 +5,7 @@
* This includes the header, options, and other information that should provide * This includes the header, options, and other information that should provide
* The User Interface to the end user. * The User Interface to the end user.
* *
* @package PluginName * @package Plugin_Name
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @license GPL-2.0+ * @license GPL-2.0+
* @link http://example.com * @link http://example.com

View file

@ -5,7 +5,7 @@
* This typically includes any information, if any, that is rendered to the * This typically includes any information, if any, that is rendered to the
* frontend of the theme when the plugin is activated. * frontend of the theme when the plugin is activated.
* *
* @package PluginName * @package Plugin_Name
* @author Your Name <email@example.com> * @author Your Name <email@example.com>
* @license GPL-2.0+ * @license GPL-2.0+
* @link http://example.com * @link http://example.com