Hi @redmonkey73, thanks!
You can use the shortcode but maybe it’s rendered after the notification is sent? How do you register your shortcode? On init action maybe?
Hi @kubitomakita, thanks for answear!
My shortcod register like that
add_shortcode('sb_show_following','sb_show_following');
function sb_show_following($atts) {
echo 'test';
}
Am use this shortcode in custom plugin
Hmm, it should work fine this case. Let me test this and I’ll come back to you.
I am also try make like this
<?php
function wporg_shortcodes_init()
{
function wporg_shortcode($atts = [], $content = null)
{
// do something to $content
// always return
return $content;
}
add_shortcode('wporg', 'wporg_shortcode');
}
add_action('init', 'wporg_shortcodes_init');
in plugin, and in functions.php, but is not help me
Hi, sorry for the late response. This was actually a bug in the plugin. Now, when you have the Strip all shortcodes setting disabled, the shortcodes are rendered.
It will be released soon, but if you need this change right now, you can download the development version.
PS. There’s a bug in your first shortcode. You have to return the value, not echo it.
-
This reply was modified 7 years, 9 months ago by
Kuba Mikita.
Hi, thank you so much, great news, i will test dev version today, also we wait new version in repo!