-
Hi, I use cloudflare as a CDN. I see I should use
/**
* Filter to Add CDN Image URLs in the Sitemap
*
* @param string $src Image URL.
* @param object $post Post object.
*/
add_filter( ‘rank_math/sitemap/xml_img_src’, function( $src, $post ){
$src = str_replace( ‘http://domain.com’, ‘https://cdn.domain.com’, $src );
return $src;
}, 10, 2);Do I need to change anything in the above? Or do I just put into function.php? thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘Image Sitemap CDN’ is closed to new replies.