Hey all! We are getting ready to release version 3.4.
If you are a developer who extends Elementor please review the below changes to keep your plugin up and running.
Here are the planned deprecations:
PHP
Functions & Methods
Hard Deprecation
When a function/method is on hard deprecation phase, it means that the function/method will still work while it’s in this phase, but will add a PHP notice if the website WP_DEBUG property is set to true.
| Function / Method Name | Changes made |
Controls_Stack::_register_controls()Core Plugin | Replaced by: Controls_Stack::register_controls()Located in: includes/base/controls-stack.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Controls_Stack::get_style_controls()Core Plugin | Replaced by: NoneLocated in: includes/base/controls-stack.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Controls_Stack::get_active_controls()Core Plugin | Replaced by: NoneLocated in: includes/base/controls-stack.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Controls_Stack::get_scheme_controls()Core Plugin | Replaced by: NoneLocated in: includes/base/controls-stack.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Settings::update_css_print_method()Core Plugin | Replaced by: NoneLocated in: includes/settings/settings.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Skin_Base::render_date()Pro Plugin | Replaced by:Skin_Base::render_date_by_type()Located in: modules/posts/skins/skin-base.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Deletion
When a function/method is on deletion phase, it means that the function/method will not work anymore, and will most likely throw a Fatal Error when it’s called.
| Function / Method Name | Changes made |
Utils::is_ajax()Core Plugin | Replaced by:wp_doing_ajax()Located in: includes/utils.phpSoft deprecation Version: 2.6.0Hard deprecation Version: 3.0.0 |
Core\Files\Assets\Svg\Svg_Handler::svg_sanitizer_can_run()Core Plugin | Replaced by:Core\Files\Assets\Files_Upload_Handler::file_sanitizer_can_run()Located in: core/files/assets/svg/svg-handler.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
Core\Files\Assets\Svg\Svg_Handler::is_svg_uploads_enabled()Core Plugin | Replaced by:Core\Files\Assets\Files_Upload_Handler::is_enabled()Located in: core/files/assets/svg/svg-handler.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
Core\Files\Assets\Svg\Svg_Handler::upload_mimes()Core Plugin | Replaced by: NoneLocated in: core/files/assets/svg/svg-handler.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
Core\Files\Assets\Svg\Svg_Handler::wp_handle_upload_prefilter()Core Plugin | Replaced by: NoneLocated in: core/files/assets/svg/svg-handler.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
Icons_Manager::register_ajax_actions()Core Plugin | Replaced by: NoneLocated in: includes/managers/icons.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
Icons_Manager::ajax_enable_svg_uploads()Core Plugin | Replaced by: NoneLocated in: includes/managers/icons.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
Core\Files\CSS\Post_Preview::get_preview_id()Core Plugin | Replaced by: Core\Files\CSS\Post_Preview::get_post_id_for_data()Located in: core/files/css/post-preview.phpSoft deprecation Version: 3.0.0Hard deprecation Version: 3.0.0 |
PHP Classes
Hard Deprecation
| Class name | Changes Made |
core/settings/general/manager.phpCore Plugin | Replaced by: Use Kit document via Located in: core/settings/general/manager.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
core/settings/general/model.phpCore Plugin | Replaced by: Use Kit document via Plugin::$instance->kits_manager->get_active_kit_for_frontend()Located in: core/settings/general/model.phpSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
PHP Files
Hard Deprecation
| File | Changes Made |
includes/libraries/wp-background-process/wp-async-request.phpCore Plugin | Replaced by: \Elementor\Core\Base\BackgroundProcess\WP_Async_RequestSoft deprecation Version: 3.0.7Deletion Version: 3.8.0 |
includes/libraries/wp-background-process/wp-background-process.phpCore Plugin | Replaced by:\Elementor\Core\Base\BackgroundProcess\WP_Background_ProcessSoft deprecation Version: 3.0.7Deletion Version: 3.8.0 |
PHP Vars
Soft Deprecation
When a function/method is in the soft deprecation phase, it means that the function/method will still work while it’s in this phase, but a comment will be placed in the code mentioning the upcoming deprecation.
| Function / Method Name | Changes Made |
Controls_Stack::RESPONSIVE_DESKTOPCore Plugin | Replaced by: Core\Breakpoints\Manager::BREAKPOINT_KEY_DESKTOPLocated in: includes\base\controls-stack.phpHard deprecation Version: 3.8.0Deletion version: 4.2.0 |
Controls_Stack::RESPONSIVE_TABLETCore Plugin | Replaced by:Core\Breakpoints\Manager::BREAKPOINT_KEY_TABLETLocated in: includes\base\controls-stack.phpHard deprecation Version: 3.8.0Deletion version: 4.2.0 |
Controls_Stack::RESPONSIVE_MOBILECore Plugin | Replaced by:Core\Breakpoints\Manager::BREAKPOINT_KEY_MOBILELocated in: includes\base\controls-stack.phpHard deprecation Version: 3.8.0Deletion version: 4.2.0 |
Hard Deprecation
| Function / Method Name | Changes Made |
$args['scheme']Core Plugin | Replaced by:$args['global']Located in: /includes/base/controls-stack.phpSoft deprecation Version: 3.0.0Deletion version: 3.8.0Note: The scheme property used in add_control. Schemes are replaced by Globals |
WP Options
Hard Deprecation
| Option Name | Changes Made |
elementor_default_generic_fontsCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'default_generic_fonts' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_container_widthCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'container_width' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_space_between_widgetsCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'space_between_widgets' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_stretched_section_containerCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'stretched_section_container' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_page_title_selectorCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'page_title_selector' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_global_image_lightboxCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'global_image_lightbox' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_enable_counterCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_enable_counter' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_enable_fullscreenCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_enable_fullscreen' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_enable_zoomCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_enable_zoom' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_enable_shareCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_enable_share' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_title_srcCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_title_src' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_description_srcCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_description_src' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_colorCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_color' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_ui_colorCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_ui_color' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_ui_color_hoverCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_ui_color_hover' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
elementor_lightbox_text_colorCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_text_color' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
lightbox_icons_sizeCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_icons_size' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
lightbox_slider_icons_sizeCore Plugin | Replaced by:Plugin::$instance->kits_manager->get_current_settings( 'lightbox_slider_icons_size' )Soft deprecation Version: 3.0.0Deletion version: 3.8.0 |
PHP Hooks
Deletion
| elementor_pro/query_control/get_autocomplete | Changes Made |
elementor_pro/query_control/get_autocomplete/{$name}Type: Filter Pro Plugin | Replaced by: elementor/query/get_autocomplete/{$name}Soft deprecation Version: 2.6.0Hard deprecation Version: 3.0.0 |
elementor_pro/query_control/get_value_titles/{$name}Type: Filter Pro Plugin | Replaced by:elementor/query/get_value_titles/{$name}Soft deprecation Version: 2.6.0Hard deprecation Version: 3.0.0 |
Class Aliases
Deletion
| Alias Name | Changes Made |
Elementor\EditorCore Plugin | Replaced by:Elementor\Core\Editor\EditorSoft deprecation Version: 2.6.0Hard deprecation Version: 3.0.0 |
JS
Functions & Methods
Soft Deprecation
| Function / Method Name | Changes Made |
elementor.helpers.document.isValidChildCore Plugin | Replaced by:$e.components.get( 'document/elements' ).utils.isValidChild()Located in: assets/dev/js/editor/document/helper.jsHard deprecation Version: 3.8.0Deletion Version: 4.2.0 |
elementor.helpers.document.isValidGrandChildCore Plugin | Replaced by:$e.components.get( 'document/elements' ).utils.isValidGrandChild()Located in: assets/dev/js/editor/document/helper.jsHard deprecation Version: 3.8.0Deletion Version: 4.2.0 |
elementor.helpers.document.isSameElementCore Plugin | Replaced by:$e.components.get( 'document/elements' ).utils.isSameElement()Located in: assets/dev/js/editor/document/helper.jsHard deprecation Version: 3.8.0Deletion Version: 4.2.0 |
elementor.helpers.document.getPasteOptionsCore Plugin | Replaced by:$e.components.get( 'document/elements' ).utils.getPasteOptions()Located in: assets/dev/js/editor/document/helper.jsHard deprecation Version: 3.8.0Deletion Version: 4.2.0 |
elementor.helpers.document.isPasteEnabledCore Plugin | Replaced by:$e.components.get( 'document/elements' ).utils.isPasteEnabled()Located in: assets/dev/js/editor/document/helper.jsHard deprecation Version: 3.8.0Deletion Version: 4.2.0 |
Hard Deprecation
| Function / Method Name | Changes Made |
elementorFrontend.getGeneralSettings()Core Plugin | Replaced by:elementorFrontend.getKitSettings()Located in: assets/dev/js/frontend/frontend.jsSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
onReady()Core Plugin | Replaced by: NoneLocated in: assets/dev/js/editor/controls/select2.jsSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
elementor.helpers.getUniqueID()Core Plugin | Replaced by:elementorCommon.helpers.getUniqueId();Located in: assets/dev/js/editor/utils/helpers.jsSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Repeater.collection.add ./ Repeater.updateContainerCore Plugin | Replaced by:e.run( 'document/repeater/insert' )Located in: assets/dev/js/editor/controls/repeater.jsSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |
Repeater.collection.reset / Repeater.resetContainerCore Plugin | Replaced by:e.run( 'document/repeater/remove' )Located in: assets/dev/js/editor/controls/repeater.jsSoft deprecation Version: 3.0.0Deletion Version: 3.8.0 |