Hey all! We are getting ready to release version 3.2.
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 |
is_built_with_elementor()Core Plugin | Replaced by:Plugin::$instance->documents->get( $post_id )->is_built_with_elementor()Located in: includes/db.phpHard deprecation Version: 3.6.0Deletion version: 4.0.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 |
Core\Base\Document::get_container_classes()Core Plugin | Replaced by:Core\Base\Document::get_container_attributes()Located in: core/base/document.phpSoft deprecation Version: 2.4.0Hard deprecation Version: 2.8.0 |
Core\Base\Document::get_remote_library_type()Core Plugin | Replaced by:Core\Base\Document::get_remote_library_config()Located in: core/base/document.phpSoft deprecation Version: 2.4.0Hard deprecation Version: 2.8.0 |
Core\Documents_Manager::get_groups()Core Plugin | Replaced by:noneLocated in: core/documents-manager.phpSoft deprecation Version: 2.4.0Hard deprecation Version: 2.8.0 |
Group_Control_Posts::on_export_remove_setting_from_element()Pro Plugin | Replaced by:noneLocated in: modules/query-control/controls/group-control-posts.phpSoft deprecation Version: 2.4.0Hard deprecation Version: 2.8.0 |
CLI Commands
Hard Deprecation
| Command | Changes Made |
sync_library / sync-libraryCore Plugin | Replaced by:library syncSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
import_library / import-libraryCore Plugin | Replaced by:library importSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
JS
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 |
startTransport()Core Plugin | Replaced by:$e.run( 'document/elements/copy' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
copy()Core Plugin | Replaced by:$e.run( 'document/elements/copy' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
cut()Core Plugin | Replaced by:$e.run( 'document/elements/cut' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
paste()Core Plugin | Replaced by:$e.run( 'document/elements/paste' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
duplicate()Core Plugin | Replaced by:$e.run( 'document/elements/duplicate' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
pasteStyle()Core Plugin | Replaced by:$e.run( 'document/elements/paste-style' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
resetStyle()Core Plugin | Replaced by:$e.run( 'document/elements/reset-style' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
addChildElement()Core Plugin | Replaced by:$e.run( 'document/elements/create' )Located in: assets/dev/js/editor/views/base-container.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
Modules
Hard Deprecation
| Module / Class Name | Changes Made |
startTransport()Core Plugin | Replaced by:$e.run( 'document/elements/copy' )Located in: assets/dev/js/editor/elements/views/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |
Events
Hard Deprecation
| Event Name | Changes Made |
elementor.channels.data -> drag:before:updateCore Plugin | Replaced by:$e.events -> Before -> 'document/elements/create'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> drag:after:updateCore Plugin | Replaced by:$e.events -> After -> 'document/elements/create'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:before:addCore Plugin | Replaced by:$e.events -> Before -> 'document/elements/create'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:after:addCore Plugin | Replaced by:$e.events -> After -> 'document/elements/create'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:before:removeCore Plugin | Replaced by:$e.events -> Before -> 'document/elements/delete'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:after:removeCore Plugin | Replaced by:$e.events -> After -> 'document/elements/delete'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:before:paste:styleCore Plugin | Replaced by:$e.events -> Before -> 'document/elements/paste-style'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:after:paste:styleCore Plugin | Replaced by:$e.events -> After -> 'document/elements/paste-style'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:before:reset:styleCore Plugin | Replaced by:$e.events -> Before -> 'document/elements/reset-style'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> element:after:reset:styleCore Plugin | Replaced by:$e.events -> After -> 'document/elements/reset-style‘Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> section:before:dropCore Plugin | Replaced by:$e.events -> Before -> 'document/elements/create'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> section:after:dropCore Plugin | Replaced by:$e.events -> After -> 'document/elements/create'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> template:before:insertCore Plugin | Replaced by:$.run( 'document/import' ) || $e.events -> Before -> 'document/import'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
elementor.channels.data -> template:after:insertCore Plugin | Replaced by:$e.events -> After -> 'document/import'Soft deprecation Version: 2.8.0Deletion version: 3.6.0 |
Vars
Hard Deprecation
| Var Name | Changes Made |
this.elementSettingsModelCore Plugin | Replaced by:this.container.settingsLocated in: assets/dev/js/editor/controls/base.jsSoft deprecation Version: 2.8.0Deletion version: 3.6.0 |