PluginProbe
Hostinger Tools / 2.0.7
Hostinger Tools v2.0.7
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
← All changes | includes/class-hostinger.php +12 -0 1.8.32.0.7 View file →
@@ -17,8 +17,20 @@
17 17 public function run(): void {
18 18 $this->bootstrap();
19 19 }
20 20
21 + /**
22 + * Define constant
23 + *
24 + * @param string $name Constant name.
25 + * @param string|bool $value Constant value.
26 + */
27 + private function define( string $name, $value ): void {
28 + if ( ! defined( $name ) ) {
29 + define( $name, $value );
30 + }
31 + }
32 +
21 33 private function get_plugin_version(): string {
22 34 if ( defined( 'HOSTINGER_VERSION' ) ) {
23 35 return HOSTINGER_VERSION;
24 36 }