Last active
March 14, 2018 02:00
-
-
Save brianleejackson/1db569bf06d7fde47c49686162435383 to your computer and use it in GitHub Desktop.
gp-yoast-seo-cdn
This file contains hidden or 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( 'https://domain.com', 'https://cdn.domain.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