1
0
Fork 0
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:
Tom McFarlin 2014-05-01 23:43:32 -04:00
parent a9e071aef8
commit ecb940ed22

View file

@ -27,6 +27,11 @@ if ( ! defined( 'WPINC' ) ) {
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.
*/
@ -42,3 +47,5 @@ register_activation_hook( __FILE__, array( 'Plugin_Name_Activator', 'activate' )
/** This action is documented in includes/class-plugin-name-deactivator.php */
register_activation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactivate' ) );