| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The file defines global constants for the plugin |
| 5 |
* |
| 6 |
* @package Tableberg |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Tableberg; |
| 10 |
|
| 11 |
/** |
| 12 |
* The core plugin class. |
| 13 |
* |
| 14 |
* This is used for defining constants which are used throughout plugin. |
| 15 |
*/ |
| 16 |
class Constants { |
| 17 |
|
| 18 |
const PLUGIN_VERSION = '0.4.1'; |
| 19 |
|
| 20 |
const PLUGIN_NAME = 'tableberg'; |
| 21 |
|
| 22 |
/** |
| 23 |
* Get Plugin version |
| 24 |
* |
| 25 |
* @return string |
| 26 |
*/ |
| 27 |
public static function plugin_version() { |
| 28 |
return self::PLUGIN_VERSION; |
| 29 |
} |
| 30 |
|
| 31 |
/** |
| 32 |
* Get Plugin name |
| 33 |
* |
| 34 |
* @return string |
| 35 |
*/ |
| 36 |
public static function plugin_name() { |
| 37 |
return self::PLUGIN_NAME; |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Get Plugin TEXT DOMAIN |
| 42 |
* |
| 43 |
* @return string |
| 44 |
*/ |
| 45 |
public static function text_domain() { |
| 46 |
return 'tableberg'; |
| 47 |
} |
| 48 |
} |
| 49 |
|