/** * Remove all shortcode tags from the given content. * * @uses $shortcode_tags * * @param string $content Content to remove shortcode tags. * @return string Content without shortcode tags. */ public function strip_shortcodes($content) { $shortcode_tags = Shortcodes::$shortcode_tags; if (empty($shortcode_tags) || !is_array($shortcode_tags)) { return $content; } $pattern = Shortcodes::getShortcodeRegex(); return preg_replace('/' . $pattern . '/s', '$1$6', $content); }