From b463e3398c619df153a0f7a8185c4a57409b4288 Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Fri, 1 Nov 2013 14:53:10 +0100 Subject: [PATCH] Place the TODOs in the correct position --- plugin-name/plugin-name.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index 90b024c..e9db48a 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -38,7 +38,6 @@ if ( ! defined( 'WPINC' ) ) { * TODO: * * - replace `class-plugin-name.php` with the name of the plugin's class file - * - replace `class-plugin-admin.php` with the name of the plugin's admin file * */ require_once( plugin_dir_path( __FILE__ ) . '/public/class-plugin-name.php' ); @@ -60,8 +59,6 @@ register_deactivation_hook( __FILE__, array( 'Plugin_Name', 'deactivate' ) ); * * - replace Plugin_Name with the name of the class defined in * `class-plugin-name.php` - * - replace Plugin_Name_Admin with the name of the class defined in - * `class-plugin-name-admin.php` */ add_action( 'plugins_loaded', array( 'Plugin_Name', 'get_instance' ) ); @@ -72,6 +69,10 @@ add_action( 'plugins_loaded', array( 'Plugin_Name', 'get_instance' ) ); /* * TODO: * + * - replace `class-plugin-admin.php` with the name of the plugin's admin file + * - replace Plugin_Name_Admin with the name of the class defined in + * `class-plugin-name-admin.php` + * * If you want to include Ajax within the dashboard, change the following * conditional to: * @@ -86,4 +87,4 @@ if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { require_once( plugin_dir_path( __FILE__ ) . '/admin/class-plugin-name-admin.php' ); add_action( 'plugins_loaded', array( 'Plugin_Name_Admin', 'get_instance' ) ); -} \ No newline at end of file +}