/** * @param $text * @return string */ public static function removeShortcodes($text) { if (!class_exists('Thunder\\Shortcode\\Processor\\Processor')) { throw new \RuntimeException("Please add \"thunderer/shortcode\": ~0.5 to composer.json first"); } $processor = new ShortcodeProcessor(); return $processor->removeShortcodes($text); }
/** * @param $text * @return string */ public static function removeShortcodes($text) { $processor = new ShortcodeProcessor(); return $processor->removeShortcodes($text); }