PluginProbe
Getwid – Gutenberg Blocks / 2.0.5
Getwid – Gutenberg Blocks v2.0.5
3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / includes / settings.php

settings.php in Getwid – Gutenberg Blocks 2.0.5, at includes/settings.php

48 lines 855 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Getwid;
4
5 class Settings {
6
7 private $version;
8 private $prefix;
9 private $pluginName;
10 private $pluginData;
11
12 /**
13 * Settings constructor.
14 */
15 public function __construct() {
16
17 if( !function_exists('get_plugin_data') ){
18 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
19 }
20
21 $this->pluginData = get_plugin_data(GETWID_PLUGIN_FILE);
22 $this->version = $this->pluginData['Version'];
23 $this->prefix = $this->pluginData['TextDomain'];
24 $this->pluginName = $this->pluginData['Name'];
25 }
26
27 /**
28 * @return string
29 */
30 public function getVersion() {
31 return $this->version;
32 }
33
34 /**
35 * @return string
36 */
37 public function getPrefix() {
38 return $this->prefix;
39 }
40
41 /**
42 * @return string
43 */
44 public function getPluginName() {
45 return $this->pluginName;
46 }
47 }
48