Support external images in the XML Sitemap

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The following API filter can be used to add support for images from external sites in the XML Sitemap.  This is especially useful if you’re running the Image CDN feature in Jetpack or similar:

add_filter( 'aioseop_images_allowed_from_hosts', 'my_aioseop_images_allowed_from_hosts' );

function my_aioseop_images_allowed_from_hosts( $hosts ) {
$hosts[] = '*.wp.com';
return $hosts;
}

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar