Last active
September 30, 2019 16:25
-
-
Save cliffordp/3c124673faf918e6d909 to your computer and use it in GitHub Desktop.
Adding custom SmugMug domain to oEmbed whitelist in WordPress (simple version)
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
| <?php | |
| // From https://tourkick.com/advice-tips-howto/smugmug-custom-domain-oembed-wordpress/ | |
| // Works but full regex version could be used instead: https://gist.github.com/cliffordp/7afaa8700d2a5711e9d6 | |
| wp_oembed_add_provider( 'https://media.tourkick.com/*', 'https://api.smugmug.com/services/oembed/' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment