php remove wordpress shortcodes

Solutions on MaxInterview for php remove wordpress shortcodes by the best coders in the world

showing results for - "php remove wordpress shortcodes"
Yannic
20 Jan 2020
1$content = '[vc_row type=""boxed""][vc_column][vc_column_text]LOREM IPSUM[/vc_column_text][vc_empty_space height=""25px""][vc_column_text]';
2
3$content = preg_replace('#\[[^\]]+\]#', '', $content);
4
5echo $content; // Result: LOREM IPSUM