PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.0.5
JetFormBuilder — Dynamic Blocks Form Builder v3.0.5
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / includes / dev-mode / manager.php
manager.php
36 lines 718 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace Jet_Form_Builder\Dev_Mode;
5
6 use Jet_Form_Builder\Classes\Instance_Trait;
7 use Jet_Form_Builder\Admin\Tabs_Handlers\Tab_Handler_Manager;
8
9 /**
10 * @method static Manager instance()
11 *
12 * Class Manager
13 * @package Jet_Form_Builder\Dev_Mode
14 */
15 class Manager {
16
17 use Instance_Trait;
18
19 private $is_active;
20
21 private function __construct() {
22 $options = Tab_Handler_Manager::get_options( 'options-tab' );
23 $this->is_active = apply_filters( 'jet-form-builder/dev-mode/activate', false );
24
25 if ( isset( $options['enable_dev_mode'] ) ) {
26 $this->is_active = $options['enable_dev_mode'];
27 }
28 }
29
30 public function active(): bool {
31 return $this->is_active;
32 }
33
34
35 }
36