astra_addon_is_code_editor_layout( int $post_id )

Check if code editor custom layout enabled.


Description


Parameters

$post_id

(int) (Required) Post Id.


Return

(bool)


Source

File: classes/astra-addon-extended-functionality.php

function astra_addon_is_code_editor_layout( $post_id ) {
	$php_enabled = get_post_meta( $post_id, 'editor_type', true );
	if ( 'code_editor' === $php_enabled ) {
		return true;
	}
	return false;
}

Changelog

Changelog
Version Description
4.1.5 Introduced.


User Contributed Notes

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