mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
defining a constant for use throughout the boilerplate
This commit is contained in:
parent
a9e071aef8
commit
ecb940ed22
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,11 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Define the current stable version of the plugin
|
||||||
|
if ( ! defined( 'PLUGIN_NAME_VER' ) ) {
|
||||||
|
define( 'PLUGIN_NAME_VER', '1.0.0' );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Includes the plugin activation class that runs during plugin activation.
|
* Includes the plugin activation class that runs during plugin activation.
|
||||||
*/
|
*/
|
||||||
|
@ -42,3 +47,5 @@ register_activation_hook( __FILE__, array( 'Plugin_Name_Activator', 'activate' )
|
||||||
|
|
||||||
/** This action is documented in includes/class-plugin-name-deactivator.php */
|
/** This action is documented in includes/class-plugin-name-deactivator.php */
|
||||||
register_activation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactivate' ) );
|
register_activation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactivate' ) );
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue