removeShortcode() public static method

Removes a shortcode handler
public static removeShortcode ( string $tag )
$tag string the shortcode tag
Esempio n. 1
0
 public function testRemoveShortcode()
 {
     Post::removeShortcode('gallery');
     $post = Post::find(123);
     $this->assertEquals($post->content, 'test [gallery id="123" size="medium"] shortcodes');
 }