| @@ -14,14 +14,12 @@ | ||
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | add_action('plugins_loaded', 'ultp_elementor_init'); |
| 17 | 17 | function ultp_elementor_init(){ |
| 18 | - $settings = ultimate_post()->get_setting(); | |
| 19 | - if ( isset($settings['ultp_elementor']) ) { | |
| 20 | - if ($settings['ultp_elementor'] == 'true') { | |
| 21 | - if(did_action( 'elementor/loaded' )){ | |
| 22 | - require_once ULTP_PATH.'/addons/elementor/Elementor.php'; | |
| 23 | - Elementor_ULTP_Extension::instance(); | |
| 24 | - } | |
| 18 | + $settings = ultimate_post()->get_setting('ultp_elementor'); | |
| 19 | + if ($settings == 'true') { | |
| 20 | + if(did_action( 'elementor/loaded' )){ | |
| 21 | + require_once ULTP_PATH.'/addons/elementor/Elementor.php'; | |
| 22 | + Elementor_ULTP_Extension::instance(); | |
| 25 | 23 | } |
| 26 | 24 | } |
| 27 | 25 | } |