November 15, 2014 - Shortcodes, Tech-Admin

Simple shortcode to list all defined shortcodes

[list_all_shortcodes]

This must be embedded in a page on the site that you want the short codes from! For example, see all the shortcodes on the main InsideLaw site

The first column is the short code that goes into the page, the second column is internal techo-babble - don’t worry too much about it. If it says "Array" it *may* be a custom shortcode, probably implemented by Shortcodes UI.

It is possible that some short codes are omitted, such as short code defined in the template.

Inspiration from:

http://wordpress.org/support/topic/how-to-list-all-active-shortcodes?replies=4

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

adapted to:

global $shortcode_tags;
echo "<table><tr><th>shortcode</th><th>calls</th>";
foreach($shortcode_tags  as $key => $value) {
  echo "<tr><td>$key</td><td>$value</td></tr>n";
}
echo "</table>";

Comments are closed.