mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
updating references in comments and in code to the plugin class files and plugin files
related #48
This commit is contained in:
parent
cf9fdceac3
commit
5cf899c20b
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
Loading…
Reference in a new issue