mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
replacing all instances of PluginName with PluginName as per the WordPress Coding Standards
fixes #61
This commit is contained in:
parent
f9ce10b207
commit
465603b5c8
5 changed files with 12 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* Plugin Name.
|
||||
*
|
||||
* @package PluginName
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
* @license GPL-2.0+
|
||||
* @link http://example.com
|
||||
|
@ -14,10 +14,10 @@
|
|||
*
|
||||
* TODO: Rename this class to a proper name for your plugin.
|
||||
*
|
||||
* @package PluginName
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
*/
|
||||
class PluginName {
|
||||
class Plugin_Name {
|
||||
|
||||
/**
|
||||
* Plugin version, used for cache-busting of style and script file references.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* A foundation off of which to build well-documented WordPress plugins that also follow
|
||||
* WordPress coding standards and PHP best practices.
|
||||
*
|
||||
* @package PluginName
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
* @license GPL-2.0+
|
||||
* @link http://example.com
|
||||
|
@ -33,9 +33,9 @@ if ( ! defined( 'WPINC' ) ) {
|
|||
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-name.php' );
|
||||
|
||||
// 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`
|
||||
register_activation_hook( __FILE__, array( 'PluginName', 'activate' ) );
|
||||
register_deactivation_hook( __FILE__, array( 'PluginName', 'deactivate' ) );
|
||||
// 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 PluginName with the name of the plugin defined in `class-plugin-name.php`
|
||||
PluginName::get_instance();
|
||||
// TODO: replace Plugin_Name with the name of the plugin defined in `class-plugin-name.php`
|
||||
Plugin_Name::get_instance();
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* Fired when the plugin is uninstalled.
|
||||
*
|
||||
* @package PluginName
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
* @license GPL-2.0+
|
||||
* @link http://example.com
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* This includes the header, options, and other information that should provide
|
||||
* The User Interface to the end user.
|
||||
*
|
||||
* @package PluginName
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
* @license GPL-2.0+
|
||||
* @link http://example.com
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* This typically includes any information, if any, that is rendered to the
|
||||
* frontend of the theme when the plugin is activated.
|
||||
*
|
||||
* @package PluginName
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
* @license GPL-2.0+
|
||||
* @link http://example.com
|
||||
|
|
Loading…
Reference in a new issue