Skip to content

Instantly share code, notes, and snippets.

@brc75
Forked from bpmore/kill-fusion.php
Created June 1, 2018 17:31
Show Gist options
  • Save brc75/c6c6602a1698fa315e6ae8c45b8b51a5 to your computer and use it in GitHub Desktop.
Save brc75/c6c6602a1698fa315e6ae8c45b8b51a5 to your computer and use it in GitHub Desktop.
remove fusion builder shortcodes
<?php
add_filter('the_content', 'remove_fusion_shortcodes', 20, 1);
function remove_fusion_shortcodes( $content ) {
$content = preg_replace('/\[\/?fusion.*?\]/', '', $content);
return $content;
}
?>
**Tested with WP All Import and Export**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment