wordpress/wp-content/themes/basic/themify/themify-wp-filters.php
/**
 * Set proper sidebar layout for post types' single post view
 *
 * @uses global $themify
 */
Set proper sidebar layout for post types' single post view
@uses global $themify
Set proper sidebar layout for post types ' single post view @uses global $themify
function themify_cpt_set_post_options() {
	if ( is_singular() ) {
		$exclude = apply_filters( 'themify_exclude_CPT_for_sidebar', array( 'post', 'page', 'attachment', 'tbuilder_layout', 'tbuilder_layout_part', 'section' ) );
		if ( ! in_array( get_post_type(), $exclude,true ) ) {
		    global $themify;
			$cpt_sidebar = 'custom_post_'.get_post_type().'_single';
			$layout=themify_get( $cpt_sidebar ) ;
			if ( $layout!== 'default' && !empty($layout)) {
				$themify->layout = $layout;
			} elseif ( themify_check( 'setting-'.$cpt_sidebar,true) ) {
				$themify->layout = themify_get( 'setting-'.$cpt_sidebar,false,true );
			} else {
				$themify->layout = themify_get( 'page_layout' );
			}
		}
	}
}
function themify_cpt_set_post_options ( ) { if ( is_singular ( ) ) { $ exclude = apply_filters ( 'themify_exclude_CPT_for_sidebar' , array ( 'post' , 'page' , 'attachment' , 'tbuilder_layout' , 'tbuilder_layout_part' , 'section' ) ) ; if ( ! in_array ( get_post_type ( ) , $ exclude , true ) ) { global $ themify ; $ cpt_sidebar = 'custom_post_' . get_post_type ( ) . '_single' ; $ layout = themify_get ( $ cpt_sidebar ) ; if ( $ layout !== 'default' && ! empty ( $ layout ) ) { $ themify -> layout = $ layout ; } elseif ( themify_check ( 'setting-' . $ cpt_sidebar , true ) ) { $ themify -> layout = themify_get ( 'setting-' . $ cpt_sidebar , false , true ) ; } else { $ themify -> layout = themify_get ( 'page_layout' ) ; } } } }
Set proper sidebar layout for post types' single post view
 @uses global $themify
Set proper sidebar layout for post types ' single post view @uses global $themify