Last active
April 25, 2024 19:03
-
-
Save graylaurenm/376da52e703bcd1c03bea0fac12fa567 to your computer and use it in GitHub Desktop.
WPRM: convert fallback HTML (when migrating from Tasty Recipes) to block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested with WP Migrate: | |
Tools > Find and Replace | |
Select the ".*" button to enable regex. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/(<!--WPRM Recipe (\d+)-->.*<!--End WPRM Recipe-->)(?!.*<!-- \/wp:wp-recipe-maker\/recipe -->)/s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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