how to list all shortcodes? (2 posts)

  1. qwertyjjj
    Posted 3 years ago #

    I have a custom theme installed.
    I know it has a whole range of shortcodes but the documentation for the theme does not list them...I only have a few sample pages.
    Where can I look in the db or PHP code for a list of all the shortcodes I can use?
    Alternatively, is there a plugin that will list all of a theme's codes?

  2. vtxyzzy
    Posted 3 years ago #

    You can find all shortcodes in the global array $shortcode_tags.

    global $shortcode_tags;
    foreach ($shortcode_tags as $key => $value) {
       echo "SHORTCODE: $key<br />";

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.