updating references in comments and in code to the plugin class files and plugin files

related #48
This commit is contained in:
Tom McFarlin 2013-05-15 10:02:10 -04:00
parent cf9fdceac3
commit 5cf899c20b
2 changed files with 5 additions and 4 deletions

View File

@ -93,6 +93,7 @@ class PluginName {
* @return object A single instance of this class.
*/
public static function get_instance() {
// If the single instance hasn't been set, set it now.
if ( null == self::$instance ) {
self::$instance = new self;

View File

@ -29,13 +29,13 @@ if ( ! defined( 'WPINC' ) ) {
die;
}
// TODO: replace `class-plugin-boilerplate.php` with the name of the actual plugin's class file
require_once( plugin_dir_path( __FILE__ ) . 'class-plugin-boilerplate.php' );
// 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' );
// 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-boilerplate.php`
// 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 PluginName with the name of the plugin defined in `class-plugin-boilerplate.php`
// TODO: replace PluginName with the name of the plugin defined in `class-plugin-name.php`
PluginName::get_instance();