Astra_Elementor::is_elementor_activated( int $id )

Check is elementor activated.


Description


Parameters

$id

(int) (Required) Post/Page Id.


Return

(boolean)


Source

File: inc/compatibility/class-astra-elementor.php

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


User Contributed Notes

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