wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Hook to content filter to show builder output
	 * @param $content
	 * @return string
	 */
Hook to content filter to show builder output
@param $content
@return string
Hook to content filter to show builder output @param $content @return string
public function builder_show_on_front($content) {
	    global $post;
	    $post_id = get_the_id();
	    $is_gs_admin_page = isset($_GET['page']) && 'themify-global-styles' === $_GET['page']  && is_admin();
	    if (
            ($is_gs_admin_page===false
			&& ( ! is_object( $post )
			|| ( is_admin() && !themify_is_ajax() )
			|| (!Themify_Builder_Model::is_front_builder_activate() && false === apply_filters( 'themify_builder_display', true, $post_id ) )
			|| post_password_required()
		)) || (themify_is_woocommerce_active() && (themify_is_shop() || is_singular( 'product' ))) 
		) {
			return $content;
	    }
	    global $wp_current_filter;
	    if (in_array('get_the_excerpt', $wp_current_filter, true)) {
		return $content?$content:$this->get_first_text($post_id);
	    }
	    if (empty(self::$post_ids)) {
			self::$post_ids[] = $post_id;
	    } 
		elseif (in_array($post_id, self::$post_ids, true) || (strpos( $post->post_content, '<!--more-->' )!==false && ! is_single( $post->ID ) && !is_page( $post->ID ) )) {
			return $content;
	    }
	    $content = $this->get_builder_output( $post_id, $content );
	    self::$post_ids[] = $post_id;
	    self::$post_ids = array_unique(self::$post_ids);
	    if (array_shift(self::$post_ids) === $post_id) {
			self::$post_ids = array();
	    }
	    return $content;
	}
public function builder_show_on_front ( $ content ) { global $ post ; $ post_id = get_the_id ( ) ; $ is_gs_admin_page = isset ( $ _GET [ 'page' ] ) && 'themify-global-styles' === $ _GET [ 'page' ] && is_admin ( ) ; if ( ( $ is_gs_admin_page === false && ( ! is_object ( $ post ) || ( is_admin ( ) && ! themify_is_ajax ( ) ) || ( ! Themify_Builder_Model :: is_front_builder_activate ( ) && false === apply_filters ( 'themify_builder_display' , true , $ post_id ) ) || post_password_required ( ) ) ) || ( themify_is_woocommerce_active ( ) && ( themify_is_shop ( ) || is_singular ( 'product' ) ) ) ) { return $ content ; } global $ wp_current_filter ; if ( in_array ( 'get_the_excerpt' , $ wp_current_filter , true ) ) { return $ content ? $ content : $ this -> get_first_text ( $ post_id ) ; } if ( empty ( self :: $ post_ids ) ) { self :: $ post_ids [ ] = $ post_id ; } elseif ( in_array ( $ post_id , self :: $ post_ids , true ) || ( strpos ( $ post -> post_content , '<!--more-->' ) !== false && ! is_single ( $ post -> ID ) && ! is_page ( $ post -> ID ) ) ) { return $ content ; } $ content = $ this -> get_builder_output ( $ post_id , $ content ) ; self :: $ post_ids [ ] = $ post_id ; self :: $ post_ids = array_unique ( self :: $ post_ids ) ; if ( array_shift ( self :: $ post_ids ) === $ post_id ) { self :: $ post_ids = array ( ) ; } return $ content ; }
Hook to content filter to show builder output
 @param $content
 @return string
Hook to content filter to show builder output @param $content @return string
// Exclude builder output in admin post list mode excerpt, Dont show builder on product single description /* disable Builder display on WC pages. Those are handled in Themify_Builder_Plugin_Compat */ //the_excerpt // Infinite-loop prevention // we have already rendered this, go back. // the loop is finished, reset the ID list