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


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

    ( click code to copy )

    wordpress snippet : PHP

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

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

  • very very good idea.

  • Cool glad you like the snippet!

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

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