swift_performance_critical_css_filename

Filter for the filename of critical CSS.

Parameters

$filename

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


Return

string


Example

// shorten critical CSS filename
add_filter('swift_performance_critical_css_filename', function($filename){
 return substr($filename, 0, 15); 
});