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.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
unregister_widget_type() Core Plugin | Replaced by: unregister() Located in: includes/managers/widgets.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
register_control() Core Plugin | Replaced by: register() Located in: includes/managers/controls.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
unregister_control() Core Plugin | Replaced by: unregister() Located in: includes/managers/controls.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
register_tag() Core Plugin | Replaced by: register() Located in: core/dynamic-tags/manager.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
unregister_tag() Core Plugin | Replaced by: unregister() Located in: core/dynamic-tags/manager.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
add_category() Core Plugin | Replaced by: register() Located in: core/common/modules/finder/categories-manager.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
add_form_action() Pro Plugin | Replaced by: actions_manager->register() Located in: modules/forms/module.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
get_form_actions() Pro Plugin | Replaced by: actions_manager->get() Located in: modules/forms/module.php Hard deprecation Version: 3.9.0 Deletion version: 4.3.0 |
add_form_field_type() Pro Plugin | Replaced by: actions_manager->register() Located in: modules/forms/module.php Hard deprecation Version: 3.9.0 Deletion 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: None Located in: core/common/modules/connect/module.php core/dynamic-tags/manager.php modules/history/module.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
admin_localize_settings() Core Plugin | Replaced by: None Located in: core/upgrade/elementor-3-re-migrate-globals.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
add_admin_strings() Core Plugin | Replaced by: None Located in: includes/managers/icons.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
editor_settings() Core Plugin | Replaced by: None Located in: modules/history/revisions-manager.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
localize_settings() Pro Plugin | Replaced by: None Located in: modules/assets-manager/module.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
_print_content() Core Plugin | Replaced by: print_content() Located in: includes/base/element-base.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
_add_render_attributes() Core Plugin | Replaced by: add_render_attributes() Located in: includes/base/element-base.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
_get_theme() Core Plugin | Replaced by: get_themes() Located in: modules/system-info/reporters/theme.phpincludes/base/element-base.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
_register_skins() Core Plugin | Replaced by: register_skins() Located in: includes/base/widget-base.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
_register_skins() Core Plugin | Replaced by: register_skins() Located in: includes/base/widget-base.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
get_builder() Core Plugin | Replaced by: None Located in: includes/db.php Soft deprecation Version: 3.1.0 Deletion 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.php Soft deprecation Version: 3.1.0 Deletion 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.php Soft deprecation Version: 2.7.0 Hard 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.php Soft deprecation Version: 2.7.0 Hard deprecation Version: 3.1.0 |
PHP Classes
Soft Deprecation
Class name | Changes Made |
Elementor\Data Core Plugin | Replaced by: Elementor\Data\V2 Located in: data/base/controller.php Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
PHP Vars
Hard Deprecation
Var Name | Changes Made |
DB::STATUS_PUBLISH Core Plugin | Replaced by: Document::STATUS_PUBLISH Located in: includes/db.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
DB::STATUS_DRAFT Core Plugin | Replaced by: Document::STATUS_DRAFT Located in: includes/db.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
DB::STATUS_PRIVATE Core Plugin | Replaced by: Document::STATUS_PRIVATE Located in: includes/db.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
DB::STATUS_AUTOSAVE Core Plugin | Replaced by: Document::STATUS_AUTOSAVE Located in: includes/db.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
DB::STATUS_PENDING Core Plugin | Replaced by: Document::STATUS_PENDING Located in: includes/db.php Soft deprecation Version: 3.1.0 Deletion version: 3.9.0 |
Deletion
Var Name | Changes Made |
Editor::EDITING_NONCE_KEY Core Plugin | Replaced by: None Located in: core\editor\editor.php Soft deprecation Version: 2.3.0 Hard deprecation Version: 2.7.0 |
Plugin::$posts_css_manager Core Plugin | Replaced by: None Located in: includes/plugin.php Soft deprecation Version: 2.1.0 Hard deprecation Version: 2.5.0 |
Plugin::$debugger Core Plugin | Replaced by: None Located in: includes/plugin.php Soft deprecation Version: 2.1.2 Hard deprecation Version: 2.5.2 |
Plugin::$ajax Core Plugin | Replaced by: None Located in: includes/plugin.php Soft deprecation Version: 2.3.0 Hard deprecation Version: 2.7.0 |
PHP Hooks
Soft Deprecation
Hook Name | Changes Made |
elementor/widgets/widgets_registered Type: Action Core Plugin | Replaced by: elementor/widgets/register Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
Type: Action Core Plugin | Replaced by: elementor/controls/register Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
Type: Action Core Plugin | Replaced by: elementor/dynamic_tags/register Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
Type: Action Core Plugin | Replaced by: elementor/finder/categories/register Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
Type: Action Pro Plugin | Replaced by: elementor_pro/forms/actions/register Hard deprecation Version: 3.9.0 Deletion 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.js Hard deprecation Version: 3.9.0 Deletion 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.js Hard deprecation Version: 3.9.0 Deletion 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.js Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
container.findChildrenRecursive Core Plugin | Replaced by:container.children.findRecursive Located in: assets/dev/js/editor/container/container.js Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
container.forEachChildrenRecursive Core Plugin | Replaced by:container.children.forEachRecursive Located in: assets/dev/js/editor/container/container.js Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
Hard Deprecation
Function / Method Name | Changes Made |
hasThumbs() Pro Plugin | Replaced by: None Located in: modules/carousel/assets/js/frontend/handlers/media-carousel.js Soft deprecation Version: 3.1.0 Deletion Version: 3.9.0 |
Modules
Hard Deprecation
Module Name | Changes Made |
Scroll Pro Plugin | Replaced by: assets/dev/js/modules/imports/utils/scroll.js Located in: assets/dev/js/frontend/utils/scroll.js Soft deprecation Version: 3.1.0 Deletion Version: 3.9.0 Info: Moved from pro to core. |
Events
Soft Deprecation
Class name | Changes Made |
elementorFrontend -> elementor/modules/init:before Core Plugin | Replaced by: elementorFrontend -> elementor/modules/init/before Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
window -> elementor:init-components Core Plugin | Replaced by: window -> elementor/init-components Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
window -> elementor:loaded Core Plugin | Replaced by: window -> elementor/loaded Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
window -> elementor:init Core Plugin | Replaced by: window -> elementor/init Hard deprecation Version: 3.9.0 Deletion Version: 4.3.0 |
Assets
Deletion
Alias Name | Changes Made |
jquery-slick Core Plugin | Replaced by: swiper Located in: assets/lib Soft deprecation Version: 2.7.0 Hard deprecation Version: 3.1.0 |
13 Responses
actions_registrar instead of actions_manager
Deprecated: Function Elementor\DB::is_built_with_elementor is deprecated since version 3.2.0! Use Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() instead. in /home/u782108053/domains/ashkt.art/public_html/wp-includes/functions.php on line 5379
i dont know how to fix this issu please help
One of your addons is still using
Elementor\DB::is_built_with_elementor()
, it should be replaced withElementor\Plugin::$instance->documents->get( $post_id )->is_built_with_elementor()
.Deprecated: The $control_id argument is deprecated since version 3.5.0! in /home/rypupte6oiz6/public_html/wp-content/plugins/elementor/modules/dev-tools/deprecation.php on line 304
Deprecated: Hook elementor/widgets/widgets_registered is deprecated since version 3.5.0! Use elementor/widgets/register instead. in /home/rypupte6oiz6/public_html/wp-includes/functions.php on line 5758
Deprecated: Function Elementor\Widgets_Manager::register_widget_type is deprecated since version 3.5.0! Use register instead. in /home/rypupte6oiz6/public_html/wp-includes/functions.php on line 5383
deprecated: The $control_id argument is deprecated since version 3.5.0! in /home3/swissgroup/public_html/wp-content/plugins/elementor/modules/dev-tools/deprecation.php on line 304
its still showing can you please help me
Same here! I’ve got several Elementor plugins and I can’t figure out which is broken or what code to fix. I can’t find this code section:
elementor/widgets/widgets_registered
Type: Action
Core Plugin Replaced by: elementor/widgets/register
Hard deprecation Version: 3.9.0
Deletion Version: 4.3.0
One of your addons is still registering new controls using a deprecated hook.
Controls should be registered according to the official guide:
https://developers.elementor.com/docs/controls/add-new-control/
Addons using the deprecated method can fix it:
https://developers.elementor.com/docs/deprecations/advanced-example/#controls
Also make sure you read the entire deprecations section:
https://developers.elementor.com/docs/deprecations/
Deprecated: The $control_id argument is deprecated since version 3.5.0! in /home4/findnmwr/alphaplumbersystem.com/wp-content/plugins/elementor/modules/dev-tools/deprecation.php on line 304
I get 4 of these lines at the top of every page since update PLEASE HELP ME
Hello
How to resolve this error in
Deprecated: Function Elementor\Widgets_Manager::register_widget_type is deprecated since version 3.5.0!
Website Config Details
WordPress Version – 6.1.1
Elementor – Version 3.10.1
Elementor Pro – 3.10.2
Operating System: Linux
Software: Apache/2.4.54 (Debian)
MySQL version: mariadb.org binary distribution v10.4.20
PHP Version: 7.4.30
PHP Memory Limit: 256M
PHP Max Input Vars: 10000
PHP Max Post Size: 100M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
great move just strip the functions on the go anytime , well done like renaming functions would really help
Hi Shau,
Reaming hooks and methods made huge difference. Now Elementor has a consistent developers API. All the components are registered in the same way. We received a positive feedback from the developers community and managed to reduced the amount of developer-related tickets.
Deprecated: Hook elementor/dynamic_tags/register_tags is deprecated since version 3.5.0! Use elementor/dynamic_tags/register instead. in /var/www/html/wp-includes/functions.php on line 5758
Kindly advise what can be done. Tq
Deprecated: The $control_id argument is deprecated since version 3.5.0! in C:\wamp64\www\landify\wp-content\plugins\elementor\modules\dev-tools\deprecation.php on line 304. How to resolve this