wordpress snippets last updated   : April 14, 2014
we now have 630 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>";
?>

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

    very very good idea.
    thanks

  • 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.

jqsnipp.com | we just launched jquery snippets website