wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Print a list of all supported shortcodes

wordpress snippet

Adding this snippet to your wordpress template will display a list of every shortcode supported by wordpress and your wordpress theme.

snippet :  PHPcopy
        global $shortcode_tags;
        echo "<pre>"; print_r($shortcode_tags); echo "</pre>";

Did you like this post? If so please share it with your friends. Thanks!

  • http://www.facebook.com/hafsi.kamal Hafsi Kamal

    very very good idea.

  • http://wpsnipp.com Kevin Chard

    Cool glad you like the snippet!

  • http://www.cliffpaulick.com Cliff Paulick

    Where exactly do you put this? I don’t think it would go in the front-end (public view) theme, right?

    • http://wpsnipp.com Kevin Chard

      Well you can put it anywhere but this is just a print_r if you try it you will see it just prints the array itself. This is just something people may find useful to integrate into a plugin or admin interface.