Skip to content

Instantly share code, notes, and snippets.

@nuriye
Created December 12, 2018 15:03
Show Gist options
  • Save nuriye/da97784ac96c1d3b6d8df75c55e2b360 to your computer and use it in GitHub Desktop.
Save nuriye/da97784ac96c1d3b6d8df75c55e2b360 to your computer and use it in GitHub Desktop.
$str = preg_replace('/<h2(.*?)<\/h2>/s', '', $contentNoShortcodes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment