Way to detect shortcodes, using WordPress core functions
-
Hi Jamie,
I was wondering, could you add the registered shortcodes to the
global array $shortcode_tags
?This way other plugins can detect them and optionally omit those tags without needing to further evaluate full compatibility with your plugin.
This would be greatly appreciated! ??Please take a look at add_shortcode(), you can leave the $func as an empty string.
Alternatively, you can call the global early and add them yourself :).I myself am using strip_shortcodes(), which relies on that global.
Thanks! ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Way to detect shortcodes, using WordPress core functions’ is closed to new replies.