-
-
Save blueprintmrk/f845a9d82919f03bc1954096137579a1 to your computer and use it in GitHub Desktop.
Yoast SEO CDN Filter
This file contains 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
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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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' );