ccurtin
2/2/2015 - 8:37 PM

Strip shortcode tags but keep the inner contents of it

Strip shortcode tags but keep the inner contents of it

<?php
function clean_content()
{
	$the_content = get_the_content();
	$the_content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $the_content);

	return $the_content;
}
?>