Open ronchambers opened 5 months ago
@naxoc - I added a simple general use command to remove featured images if the actual image file does not exist on the hard drive. Please review if/when you can. Thank you!
(fyi @eddiesshop )
Thanks! Let's wait a little bit with this one – we might not need it, but let's keep the PR open a bit longer in case we end up needing it :)
Sounds good. (If we do need it, I'll add --dry-run)
Adds a general command to loop through all posts that have featured images and remove the featured image from the post if the image file does not exist on the hard drive.
Command:
wp newspack-content-migrator remove-featured-images-if-file-is-missing
Output log:
cmd_remove_featured_images_if_file_is_missing.log