swift_performance_media_host

This filter will be called before Swift Performance will load a image file to base64 encode it

Parameters

$host

string, contains the home URL (eg: https://yoursite.com/)


Return

string


Example

// Remove www. from Image URLs
add_filter('swift_performance_media_host', function($src){
 return str_replace('www.','',$src);
});