1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2025-04-19 05:35:36 +03:00

Adding a version constant

This commit is contained in:
Jonathan Bossenger 2017-07-17 10:04:31 +02:00
parent 923fbaf0c8
commit 5af56b19a5
2 changed files with 7 additions and 2 deletions

View file

@ -67,9 +67,12 @@ class Plugin_Name {
* @since 1.0.0
*/
public function __construct() {
if ( defined( 'PLUGIN_VERSION' ) ) {
$this->version = PLUGIN_VERSION;
} else {
$this->version = '1.0.0';
}
$this->plugin_name = 'plugin-name';
$this->version = '1.0.0';
$this->load_dependencies();
$this->set_locale();