WordPress.org

Ready to get started?Download WordPress

Forums

how to list all shortcodes? (2 posts)

  1. qwertyjjj
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    global $shortcode_tags;
    //print_r($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

Tags

No tags yet.