Skip to content

Instantly share code, notes, and snippets.

@bdeleasa
Created July 9, 2018 14:46
Show Gist options
  • Save bdeleasa/1a3acde2b879fc922d9e689bf17f31fd to your computer and use it in GitHub Desktop.
Save bdeleasa/1a3acde2b879fc922d9e689bf17f31fd to your computer and use it in GitHub Desktop.
Makes sure all posts have a featured image. Updates older posts and sets the first embedded image as the featured image. Also does the same for any new posts created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment