Remove Shortcode Tags and Only Display Content

I don’t use a few plugins anymore which produced some shortcodes [shortcode]…[/shortcode] so I needed to find a way to strip the shortcode but keep the content inside of it.  Here’s how.


function no_stextbox($atts,$content=null) {
 return "<p>".$content."</p>";
add_shortcode('stextbox', 'no_stextbox');

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>