astra_get_sidebar_layout_for_editor( string $post_type )
Function which will return the Sidebar Layout to determine default body classes for Editor.
Description
Parameters
- $post_type
-
(string) (Required) Post Type.
Return
(string) Sidebar Layout.
Source
File: inc/core/common-functions.php
function astra_get_sidebar_layout_for_editor( $post_type ) { $sidebar_layout = astra_get_option( 'single-' . $post_type . '-sidebar-layout' ); if ( 'default' === $sidebar_layout ) { $sidebar_layout = astra_get_option( 'site-sidebar-layout' ); } return $sidebar_layout; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |