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;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.1.5 | Introduced. |