• Resolved optimized-marketing

    (@optimized-marketingcom)


    Hello,

    Thank you for such a great plugin. Do you have a prebuilt function that can sort through the list of shortcodes I have created? I am trying to create a small code that searches through them to find a specific shortcode to call. Thanks again for an awesome plugin, it has really saved me a ton of time!

    http://wordpress.org/plugins/shortcodes-ui/

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 http://codex.wordpress.org/Shortcode_API

Viewing 1 replies (of 1 total)

The topic ‘Searching through Shortcodes’ is closed to new replies.