Astra_Elementor_Pro::is_elementor_editor()
Check if Elementor Editor is open.
Description
Return
(boolean) true iF Elementor Editor is loaded, false If Elementor Editor is not loaded.
Source
File: inc/compatibility/class-astra-elementor-pro.php
public function is_elementor_editor() {
if ( ( isset( $_REQUEST['action'] ) && 'elementor' == $_REQUEST['action'] ) || isset( $_REQUEST['elementor-preview'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
return true;
}
return false;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |