Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #php #remove #wordpress #shortcodes
ADD COMMENT
Topic
Name
4+9 =