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;
		}

Changelog

Changelog
Version Description
3.8.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.