mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-23 04:13:53 +02:00
Merge pull request #110 from grappler/patch-1
Place the TODOs in the correct position
This commit is contained in:
commit
ae381619d4
1 changed files with 5 additions and 4 deletions
|
@ -38,7 +38,6 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
* TODO:
|
* TODO:
|
||||||
*
|
*
|
||||||
* - replace `class-plugin-name.php` with the name of the plugin's class file
|
* - 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' );
|
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
|
* - replace Plugin_Name with the name of the class defined in
|
||||||
* `class-plugin-name.php`
|
* `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' ) );
|
add_action( 'plugins_loaded', array( 'Plugin_Name', 'get_instance' ) );
|
||||||
|
|
||||||
|
@ -72,6 +69,10 @@ add_action( 'plugins_loaded', array( 'Plugin_Name', 'get_instance' ) );
|
||||||
/*
|
/*
|
||||||
* TODO:
|
* 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
|
* If you want to include Ajax within the dashboard, change the following
|
||||||
* conditional to:
|
* conditional to:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue