/** * Format content to fix shortcodes. * @param string $content * @return string */ function ac_fix_shortcodes($content) { global $post; if (is_singular() && is_pagebuilder_active($post->ID)) { $content = ac_format_shortcode($content); } return $content; }
/** * Format content to display shortcodes. * @param string $raw_string * @return string */ function ac_format_content($raw_string) { return apply_filters('axiscomposer_format_content', do_shortcode(ac_format_shortcode(shortcode_unautop(wpautop($raw_string)))), $raw_string); }