We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9042b34 commit 1c3538dCopy full SHA for 1c3538d
1 file changed
app/Plugin.php
@@ -9,11 +9,12 @@
9
class Plugin extends \WordPress_ToolKit\ToolKit {
10
11
public static $textdomain;
12
+ public static $config;
13
14
function __construct() {
15
16
// Load plugin configuration
- $this->init( dirname( __DIR__ ), trailingslashit( dirname( __DIR__ ) ) . 'plugin.json' );
17
+ self::$config = $this->init( dirname( __DIR__ ), trailingslashit( dirname( __DIR__ ) ) . 'plugin.json' );
18
self::$config->merge( new ConfigRegistry( [ 'plugin' => $this->get_current_plugin_meta( ARRAY_A ) ] ) );
19
20
// Set Text Domain
0 commit comments