Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Last active September 30, 2019 16:25
Show Gist options
  • Select an option

  • Save cliffordp/3c124673faf918e6d909 to your computer and use it in GitHub Desktop.

Select an option

Save cliffordp/3c124673faf918e6d909 to your computer and use it in GitHub Desktop.
Adding custom SmugMug domain to oEmbed whitelist in WordPress (simple version)
<?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