public static function removeShortcode($tag) { if (isset(self::$shortcodes[$tag])) { unset(self::$shortcodes[$tag]); } }
public function testRemoveShortcode() { Post::removeShortcode('gallery'); $post = Post::find(123); $this->assertEquals($post->content, 'test [gallery id="123" size="medium"] shortcodes'); }