fault' => $breakpoint_key, 'label_on' => esc_html__( 'On', 'elementskit' ), 'label_off' => esc_html__( 'Off', 'elementskit' ), 'return_value' => $breakpoint_key, 'condition' => [ 'ekit_sticky!' => '', ], 'frontend_available' => true, ] ); } } /** * Migrate ekit_sticky_on option * * Migrate the ekit_sticky_on select option to switch control * * @todo will be removed * @since 3.3.0 */ public function sticky_on_option_migrate_config() { global $wpdb; $post_ids = $wpdb->get_col( 'SELECT `post_id` FROM `' . $wpdb->postmeta . '` WHERE `meta_key` = "_elementor_data" AND `meta_value` LIKE \'%"ekit_sticky_on"%\';' ); if (empty($post_ids)) { return; }; foreach ($post_ids as $post_id) { $do_update = false; $document = \Elementor\Plugin::$instance->documents->get($post_id); if ($document) { $data = $document->get_elements_data(); } if (empty($data)) { continue; } $data = \Elementor\Plugin::$instance->db->iterate_data($data, function ($element) use (&$do_update) { if (empty($element['settings']['ekit_sticky_on'])) { return $element; } if (!empty($element['settings']['ekit_sticky_on'])) { $devices = explode('_', $element['settings']['ekit_sticky_on']); $active_devices = Plugin::$instance->breakpoints->get_active_devices_list( [ 'reverse' => true ] ); foreach ($active_devices as $breakpoint_key) { $element['settings']['ekit_sticky_on_' . $breakpoint_key] = in_array($breakpoint_key, $devices) ? $breakpoint_key : ''; $do_update = true; } $element['settings']['ekit_sticky_on_widescreen'] = 'widescreen'; } // cleanup old unused settings. if (!empty($element['settings']['ekit_sticky_on'])) { unset($element['settings']['ekit_sticky_on']); } return $element; }); // Only update if needed. if (!$do_update) { continue; } // We need the `wp_slash` in order to avoid the unslashing during the `update_post_meta` $json_value = wp_slash(wp_json_encode($data)); update_metadata('post', $post_id, '_elementor_data', $json_value); // Clear WP cache for next step. wp_cache_flush(); } // End foreach(). } }
Fatal error: Uncaught Error: Class "Elementor\ElementsKit_Extend_Sticky" not found in /htdocs/najmakhadra.com/wp-content/plugins/elementskit/modules/sticky-content/init.php:25 Stack trace: #0 /htdocs/najmakhadra.com/wp-content/plugins/elementskit-lite/core/build-modules.php(45): ElementsKit\Modules\Sticky_Content\Init->__construct() #1 /htdocs/najmakhadra.com/wp-content/plugins/elementskit-lite/traits/singleton.php(17): ElementsKit_Lite\Core\Build_Modules->__construct() #2 /htdocs/najmakhadra.com/wp-content/plugins/elementskit-lite/plugin.php(57): ElementsKit_Lite\Core\Build_Modules::instance() #3 /htdocs/najmakhadra.com/wp-content/plugins/elementskit-lite/plugin.php(477): ElementsKit_Lite\Plugin->__construct() #4 /htdocs/najmakhadra.com/wp-content/plugins/elementskit-lite/elementskit-lite.php(351): ElementsKit_Lite\Plugin::instance() #5 /htdocs/najmakhadra.com/wp-includes/class-wp-hook.php(324): ElementsKit_Lite->{closure}('') #6 /htdocs/najmakhadra.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /htdocs/najmakhadra.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /htdocs/najmakhadra.com/wp-content/plugins/elementor/includes/plugin.php(685): do_action('elementor/init') #9 /htdocs/najmakhadra.com/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #10 /htdocs/najmakhadra.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #11 /htdocs/najmakhadra.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /htdocs/najmakhadra.com/wp-settings.php(704): do_action('init') #13 /htdocs/najmakhadra.com/wp-config.php(101): require_once('/htdocs/najmakh...') #14 /htdocs/najmakhadra.com/wp-load.php(50): require_once('/htdocs/najmakh...') #15 /htdocs/najmakhadra.com/wp-blog-header.php(13): require_once('/htdocs/najmakh...') #16 /htdocs/najmakhadra.com/index.php(17): require('/htdocs/najmakh...') #17 {main} thrown in /htdocs/najmakhadra.com/wp-content/plugins/elementskit/modules/sticky-content/init.php on line 25