Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created August 3, 2017 16:54
Show Gist options
  • Save lukecav/1377a9566af5e245ca3fc6a911365cad to your computer and use it in GitHub Desktop.
Save lukecav/1377a9566af5e245ca3fc6a911365cad to your computer and use it in GitHub Desktop.
Yoast SEO CDN Filter
function wpseo_cdn_filter( $uri ) {
return str_replace( 'http://yourdomain.com', 'http://cdn.yourdomain.com', $uri );
}
add_filter( 'wpseo_xml_sitemap_img_src', 'wpseo_cdn_filter' );
@lukecav
Copy link
Author

lukecav commented Aug 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment