diff --git a/plugin-name/class-plugin-name.php b/plugin-name/class-plugin-name.php index e6446fe..68ee6a3 100644 --- a/plugin-name/class-plugin-name.php +++ b/plugin-name/class-plugin-name.php @@ -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; diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index a573b95..38d440e 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -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(); \ No newline at end of file