Removing Visual Composer & Shortcodes
-
Hi,
I added a function to delete shortcodes like “[vc_row]] [vc_column width =” 1/4 “]”. I tested the function outside, it works. But it doesn’t work in XML editor.https://monosnap.com/file/6zHhfndeAfj5rDcmt8LB0twpADhNHT
https://monosnap.com/file/CcrSOIO4M7avnu8XPzXvcbTbMKSP0I
https://monosnap.com/file/1CALJR49LkOMMnXRkCcOCIsqGxUwckfunction my_fix_content( $content ) { $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); $content = preg_replace('~(?:\[/?).*?"]~s', '', $content); $content = preg_replace('(\\[([^[]|)*])', '', $content ); $content = preg_replace('/\[(.*?)\]/', '', $content ); return $content; }The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Removing Visual Composer & Shortcodes’ is closed to new replies.