Skip to content

Instantly share code, notes, and snippets.

@graylaurenm
Last active April 25, 2024 19:03
Show Gist options
  • Save graylaurenm/376da52e703bcd1c03bea0fac12fa567 to your computer and use it in GitHub Desktop.
Save graylaurenm/376da52e703bcd1c03bea0fac12fa567 to your computer and use it in GitHub Desktop.
WPRM: convert fallback HTML (when migrating from Tasty Recipes) to block
Tested with WP Migrate:
Tools > Find and Replace
Select the ".*" button to enable regex.
/(<!--WPRM Recipe (\d+)-->.*<!--End WPRM Recipe-->)(?!.*<!-- \/wp:wp-recipe-maker\/recipe -->)/s
<!-- wp:wp-recipe-maker/recipe {"id":$2} -->$1<!-- /wp:wp-recipe-maker/recipe -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment