Home / admin / Print a list of all supported shortcodes
  • How to Print a list of all supported shortcodes

    print-a-list-of-all-support-shortcodes

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

    wordpress snippet : PHP

    <>
    <?
            global $shortcode_tags;
            echo "<pre>"; print_r($shortcode_tags); echo "</pre>";
    ?>
    

    ( WordPress codex functions, hooks, in this snippet. )

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