swift_performance_style_src

This filter will be called before Swift Performance will load a CSS file to merge it.

Parameters

$src

string, contains the full path for the CSS file


Return

string


Example

// Remove www. from CSS urls
add_filter('swift_performance_style_src', function($src){
 return str_replace('www.','',$src);
});