swift_performance_css_filename

Filter for the filename of merged CSS.

Parameters

$filename

string, contains the filename of the CSS file (without path, with the extension, eg: ff1ccf57e98c817df1efcd9fe44a8aeb.css)

$key:

media attribute for the CSS all if CSS doesn’t have any media attribute, otherwise the attribute string (eg: print, or min-width:768px)


Return

string


Example

// shorten CSS filename
add_filter('swift_performance_css_filename', function($filename, $key){
 return substr($filename, 0, 15); 
}, 10, 2);