Created
August 3, 2017 16:54
-
-
Save lukecav/1377a9566af5e245ca3fc6a911365cad 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
https://yoast.com/wordpress/plugins/seo/api/#examples