elementor / elementor/elementor
elementor.saver.update and elementor.getPanelView().setPage doesn't work
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
Previously, we used code to add custom settings in Page settings.
`elementor.settings.page.addChangeCallback( 'content_type', function( newValue ) {
elementor.saver.update( {
onSuccess: function() {
elementor.reloadPreview();
elementor.once( 'preview:loaded', function() {
elementor.getPanelView().setPage( 'page_settings' );
} );
}
} );
} ); `
This doesn't work now. Plugin has notice
update is soft deprecated since 2.9.0 - Use $e.run
But $e is not defined under hook elementor/frontend/init
elementor.getPanelView().setPage( 'page_settings' ) also doesn't work, plugin jump to general tabs in any case.
What is the correct code to make custom page settings?
Contributor guide
Assessment
This issue has not been assessed yet.