Answers for "wordpress remove specific shortcode from content"

PHP
1

php remove wordpress shortcodes

$content = '[vc_row type=""boxed""][vc_column][vc_column_text]LOREM IPSUM[/vc_column_text][vc_empty_space height=""25px""][vc_column_text]';

$content = preg_replace('#\[[^\]]+\]#', '', $content);

echo $content; // Result: LOREM IPSUM
Posted by: Guest on March-30-2021

Code answers related to "wordpress remove specific shortcode from content"

Browse Popular Code Answers by Language