Astra_Ext_Advanced_Hooks_Markup::is_elementor_activated( int $id )

Check is elementor activated.


Description


Parameters

$id

(int) (Required) Post/Page Id.


Return

(boolean)


Source

File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-markup.php

		public static function is_elementor_activated( $id ) {
			if ( ! class_exists( '\Elementor\Plugin' ) ) {
				return false;
			}
			if ( version_compare( ELEMENTOR_VERSION, '1.5.0', '<' ) ) {
				return ( 'builder' === Elementor\Plugin::$instance->db->get_edit_mode( $id ) );
			} else {
				return Elementor\Plugin::$instance->db->is_built_with_elementor( $id );
			}

			return false;
		}

User Contributed Notes

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