/** * Parser for builder elments * * @since 2.0.0 * * @prama String String having post/page content */ public static function check_builder_elements($content) { global $post; //current page/post $short_codes_content; if ($post) { self::$meta_content = get_post_meta($post->ID, "fusion_builder_content", TRUE); //get builder contents if (!empty(self::$meta_content)) { //if page built through fusion builder $short_codes_content = Fusion_Core_Shortcodes_Parser::parse_column_options(); // let the magic begin return do_shortcode($short_codes_content); } else { return $content; } } else { return $content; } }