Support » Plugins » Hacks » List of shortcodes already in use?

  • Resolved Trishah


    Is there a list somewhere of the shortcodes that are already in use? I’m thinking about developing my second plugin and I’d like to make sure the shortcode is not already being used before I start.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t think that there’s no official list of shortcodes. I haven’t seen one before anyway. Even if there is, it will never be complete because each theme and each plugin can add their own shortcodes at any time, so it will depened totally on what combination of theme and plugins you use.

    The best way around this is to use something that’s got the least change of collisions for your own shortcodes. As an example, if yu’re pluign is called “trishahdeesgreatnewplugin’ you could have all of it’s shortcodes prefixed with ‘tdgnp’, so they’d be something like


    That’s really about the best way to do it.

    Shortcodes are being stored in a global variable/array. So you could do something like this:

    global $shortcode_tag;
    if( !in_array( 'myNewShortcode', $shortcode_tag ) ) {
    ...add myNewShortcode...

    For a case insensitive check you would have to aim for the “slug” which is also stored in $shortcode_tag

    I was a bit slower than Michael 🙂 But he’s right: Prefixing should always be the way to go.

    I don’t mean to spam but actually my code from above was wrong^^, sry. It would have to be
    if( !key_exists( 'myNewShortCode', $shortcode_tag ) ) {...



    And Chris, correcting code is NEVER spam 🙂

    I can see why creating such a list might be futile… OTOH, having a searchable db that allows for submissions and tracking would be great… but I’m NOT volunteering for the admin job on that one! lol

    But until some brave soul does tackle such a product, I think that prefixing is the way to go.

    Thanks for your input!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘List of shortcodes already in use?’ is closed to new replies.