Viewing 1 replies (of 1 total)
  • I created a shortcode called [list_all_shortcodes]

    Place this in the ‘PHP Code’ box:

    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>";

    It prints ‘Array’ for some shortcodes, including those created by Shortcodes UI. For more info, or to expand the info that can be returned, see https://codex.www.ads-software.com/Shortcode_API

Viewing 1 replies (of 1 total)
  • The topic ‘Searching through Shortcodes’ is closed to new replies.