PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.0.41
Post Grid Gutenberg Blocks – PostX v5.0.41
5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 All 238 releases
← All changes | addons/elementor/init.php +7 -22 2.1.15.0.41 View file →
@@ -1,27 +1,12 @@
1 1 <?php
2 2 defined( 'ABSPATH' ) || exit;
3 3
4 -add_filter('ultp_addons_config', 'ultp_elementor_config');
5 -function ultp_elementor_config( $config ) {
6 - $configuration = array(
7 - 'name' => __( 'Elementor Addons', 'ultimate-post' ),
8 - 'desc' => __( 'Enable Elementor Addons for Elementor Website Builder.', 'ultimate-post' ),
9 - 'img' => ULTP_URL.'/assets/img/addons/saved-template.svg',
10 - 'is_pro' => false
11 - );
12 - $config['ultp_elementor'] = $configuration;
13 - return $config;
14 -}
15 -
16 -add_action('plugins_loaded', 'ultp_elementor_init');
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 - }
4 +add_action( 'plugins_loaded', 'ultp_elementor_init' );
5 +function ultp_elementor_init() {
6 + if ( ultimate_post()->get_setting( 'ultp_elementor' ) == 'true' ) {
7 + if ( did_action( 'elementor/loaded' ) ) {
8 + require_once ULTP_PATH . '/addons/elementor/Elementor.php';
9 + Elementor_ULTP_Extension::instance();
25 10 }
26 11 }
27 -}
12 +}