Skip to content

1.35.0

Choose a tag to compare

@BenKalsky BenKalsky released this 01 Sep 22:53
· 2 commits to main since this release
321ac15

Site Tweaks learns to lock Elementor pages to the Elementor editor.

A new toggle (off by default) stops the recurring support call where a client
clicks "Back to WordPress Editor" on an Elementor page, saves, and the site
renders the Gutenberg content instead of the Elementor layout. Users without
the bypass capability (manage_options by default, filterable) are sent from
the native editor straight to Elementor for pages built with Elementor, edit
links on the post lists and admin bar point directly there, and the switch
button is hidden from them.

Administrators are never affected. Trash, untrash and the Elementor editor
itself always pass through - the action=edit condition is the redirect-loop
guard. A user Elementor itself refuses (a role excluded in Elementor Pro's
Role Manager) keeps the native editor and the switch, so nobody is ever left
with no editor at all. A per-post exemption filter reaches every surface,
including the hidden switch. Deactivating Elementor makes the whole feature a
no-op.

Filters: dpt_st_elementor_lock_bypass_cap, dpt_st_elementor_lock_enabled,
dpt_st_elementor_lock_hide_switch.