Last active
June 16, 2020 14:55
-
-
Save cesar/5bee349af410e005c53b0a9dab3ab9d8 to your computer and use it in GitHub Desktop.
This file contains 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
if (embedded) { | |
if (embedded['wp:featuredmedia']) { | |
if (embedded['wp.featuredmedia'][0]) { | |
... | |
} | |
} | |
} | |
// Usando lodash get | |
import get from 'lodash/get' | |
url = get(embedded, '[wp:featuredmedia'][0].media_details.sizes.medium_large.source_url', '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment