cliff
12/2/2014 - 4:34 PM

Adding custom SmugMug domain to oEmbed whitelist in WordPress (simple version)

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/' );