Astra_Elementor::astra_entry_header_class_custom( array $classes )

Astra post layout 2 disable compatibility.


Description


Parameters

$classes

(array) (Required) Array of elementor edit mode check.


Source

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

		function astra_entry_header_class_custom( $classes ) {
			$post_id = astra_get_post_id(); 
			/** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
			$edit_mode = get_post_meta( $post_id, '_elementor_edit_mode', true ); 

			if ( $edit_mode && $edit_mode === 'builder' ) { 
				$classes[] = 'ast-header-without-markup';
			}

			return $classes;
		}

Changelog

Changelog
Version Description
4.1.0 Introduced.


User Contributed Notes

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