Hey all! We are getting ready to release version 3.5.
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
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 |
register_widget_type()Core Plugin | Replaced by: register()Located in: includes/managers/widgets.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
unregister_widget_type()Core Plugin | Replaced by: unregister()Located in: includes/managers/widgets.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
register_control()Core Plugin | Replaced by: register()Located in: includes/managers/controls.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
unregister_control()Core Plugin | Replaced by: unregister()Located in: includes/managers/controls.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
register_tag()Core Plugin | Replaced by: register()Located in: core/dynamic-tags/manager.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
unregister_tag()Core Plugin | Replaced by: unregister()Located in: core/dynamic-tags/manager.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
add_category()Core Plugin | Replaced by: register()Located in: core/common/modules/finder/categories-manager.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
add_form_action()Pro Plugin | Replaced by: actions_manager->register()Located in: modules/forms/module.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
get_form_actions()Pro Plugin | Replaced by: actions_manager->get()Located in: modules/forms/module.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
add_form_field_type()Pro Plugin | Replaced by: actions_manager->register()Located in: modules/forms/module.phpHard deprecation Version: 3.9.0Deletion version: 4.3.0 |
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 |
localize_settings()Core Plugin | Replaced by: NoneLocated in: core/common/modules/connect/module.phpcore/dynamic-tags/manager.phpmodules/history/module.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
admin_localize_settings()Core Plugin | Replaced by: NoneLocated in: core/upgrade/elementor-3-re-migrate-globals.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
add_admin_strings()Core Plugin | Replaced by: NoneLocated in: includes/managers/icons.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
editor_settings()Core Plugin | Replaced by: NoneLocated in: modules/history/revisions-manager.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
localize_settings()Pro Plugin | Replaced by: NoneLocated in: modules/assets-manager/module.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
_print_content()Core Plugin | Replaced by: print_content()Located in: includes/base/element-base.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
_add_render_attributes()Core Plugin | Replaced by: add_render_attributes()Located in: includes/base/element-base.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
_get_theme()Core Plugin | Replaced by: get_themes()Located in: modules/system-info/reporters/theme.phpincludes/base/element-base.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
_register_skins()Core Plugin | Replaced by: register_skins()Located in: includes/base/widget-base.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
_register_skins()Core Plugin | Replaced by: register_skins()Located in: includes/base/widget-base.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
get_builder()Core Plugin | Replaced by: NoneLocated in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
set_is_elementor_page()Core Plugin | Replaced by: Plugin::$instance->documents->get( $post_id )->set_is_built_with_elementor(Located in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.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.
| Class name | Changes Made |
TemplateLibrary\Manager::unregister_source()Core Plugin | Replaced by: none Located in:Â includes/template-library/manager.phpSoft deprecation Version: 2.7.0Hard deprecation Version:Â 3.1.0 |
License\API::get_previous_package_url()Pro Plugin | Replaced by: License\API::get_plugin_package_url()Located in:Â license/admin.phpSoft deprecation Version: 2.7.0Hard deprecation Version:Â 3.1.0 |
PHP Classes
Soft Deprecation
| Class name | Changes Made |
Elementor\DataCore Plugin | Replaced by: Elementor\Data\V2Located in: data/base/controller.phpHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
PHP Vars
Hard Deprecation
| Var Name | Changes Made |
DB::STATUS_PUBLISHCore Plugin | Replaced by: Document::STATUS_PUBLISHLocated in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
DB::STATUS_DRAFTCore Plugin | Replaced by: Document::STATUS_DRAFTLocated in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
DB::STATUS_PRIVATECore Plugin | Replaced by: Document::STATUS_PRIVATELocated in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
DB::STATUS_AUTOSAVECore Plugin | Replaced by: Document::STATUS_AUTOSAVELocated in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
DB::STATUS_PENDINGCore Plugin | Replaced by: Document::STATUS_PENDINGLocated in: includes/db.phpSoft deprecation Version: 3.1.0Deletion version: 3.9.0 |
Deletion
| Var Name | Changes Made |
Editor::EDITING_NONCE_KEYCore Plugin | Replaced by: NoneLocated in: core\editor\editor.phpSoft deprecation Version: 2.3.0Hard deprecation Version: 2.7.0 |
Plugin::$posts_css_managerCore Plugin | Replaced by: NoneLocated in: includes/plugin.phpSoft deprecation Version: 2.1.0Hard deprecation Version: 2.5.0 |
Plugin::$debuggerCore Plugin | Replaced by: NoneLocated in: includes/plugin.phpSoft deprecation Version: 2.1.2Hard deprecation Version: 2.5.2 |
Plugin::$ajaxCore Plugin | Replaced by: NoneLocated in: includes/plugin.phpSoft deprecation Version: 2.3.0Hard deprecation Version: 2.7.0 |
PHP Hooks
Soft Deprecation
| Hook Name | Changes Made |
elementor/widgets/widgets_registeredType: Action Core Plugin | Replaced by: elementor/widgets/registerHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Type: ActionCore Plugin | Replaced by: elementor/controls/registerHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Type: Action Core Plugin | Replaced by: elementor/dynamic_tags/registerHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Type: Action Core Plugin | Replaced by: elementor/finder/categories/registerHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Type: Action Pro Plugin | Replaced by: elementor_pro/forms/actions/registerHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Deletion
…
JS
Functions & Methods
Soft Deprecation
| Function / Method Name | Changes Made |
elementorPro.modules.globalWidget.getGlobalModels( id )Pro Plugin | Replaced by:$e.data.getCache( `document/global/global-widget/templates/${ id }` )Located in: modules/global- widget/assets/js/editor/module.jsHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
elementorPro.modules.globalWidget.saveTemplates()Pro Plugin | Replaced by:$e.internal( 'document/global/save-templates' )Located in: modules/global- widget/assets/js/editor/module.jsHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
elementorPro.modules.globalWidget.requestGlobalModelSettings()Pro Plugin | Replaced by:$e.data.get( 'document/global/templates' )Located in: modules/global- widget/assets/js/editor/module.jsHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
container.findChildrenRecursiveCore Plugin | Replaced by:container.children.findRecursiveLocated in: assets/dev/js/editor/container/container.jsHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
container.forEachChildrenRecursiveCore Plugin | Replaced by:container.children.forEachRecursiveLocated in: assets/dev/js/editor/container/container.jsHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Hard Deprecation
| Function / Method Name | Changes Made |
hasThumbs()Pro Plugin | Replaced by: NoneLocated in: modules/carousel/assets/js/frontend/handlers/media-carousel.jsSoft deprecation Version: 3.1.0Deletion Version: 3.9.0 |
Modules
Hard Deprecation
| Module Name | Changes Made |
ScrollPro Plugin | Replaced by: assets/dev/js/modules/imports/utils/scroll.jsLocated in: assets/dev/js/frontend/utils/scroll.jsSoft deprecation Version: 3.1.0Deletion Version: 3.9.0Info: Moved from pro to core. |
Events
Soft Deprecation
| Class name | Changes Made |
elementorFrontend -> elementor/modules/init:beforeCore Plugin | Replaced by: elementorFrontend -> elementor/modules/init/beforeHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
window -> elementor:init-componentsCore Plugin | Replaced by: window -> elementor/init-componentsHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
window -> elementor:loadedCore Plugin | Replaced by: window -> elementor/loadedHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
window -> elementor:initCore Plugin | Replaced by: window -> elementor/initHard deprecation Version: 3.9.0Deletion Version: 4.3.0 |
Assets
Deletion
| Alias Name | Changes Made |
jquery-slickCore Plugin | Replaced by: swiperLocated in: assets/libSoft deprecation Version: 2.7.0Hard deprecation Version: 3.1.0 |