how to use str_replace to strip shortcodes tag out of activity content?
-
i tried code below, but totally not work…
(something like this? )
<?php
$content = bp_activity_content_body();
$content = str_replace(‘[‘,”,$content);
echo $content;
?>anyone know how to strip shortcodes tags from activity content? for preventing generating any shortcode that put in the post form of activity..
- The topic ‘how to use str_replace to strip shortcodes tag out of activity content?’ is closed to new replies.