• Resolved Martin Taylor

    (@docdunning)


    The WP global variable $shortcode_tags is supposed to include all shortcodes that have been registered. It’s used (for example) by the Shortcodes Finder plugin, so that you can search for occurrences of all shortcodes on your site.
    Problem is that TablePress doesn’t appear in the $shortcode_tags array … any idea why this is? I can work around it by forcing the values into the array for the plugin, but it seems odd that TablePress isn’t there by default.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    My guess is that you are checking this while in the is_admin() context. TablePress however only registers the [table] Shortcode in the front end (i.e. when is_admin() is false), as that’s where Shortcodes are normally needed and evaluated.

    (Note that I’m aware that this does have drawbacks, like your scenario, but I’m a bit hesitant to change it, for backwards compatibility reasons.)

    Regards,
    Tobias

    Thread Starter Martin Taylor

    (@docdunning)

    That makes sense – thanks, Tobias. At least I know why it’s not appearing in the array now, which helps. I can work around it.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TablePress not included in global $shortcode_tags’ is closed to new replies.