Skip to content

Instantly share code, notes, and snippets.

@cliffordp cliffordp/functions.php
Last active Sep 30, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.