swift_performance_css_content
Filter for the merged full CSS.
Parameters
$css
string, contains the merged 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
// add extra CSS for merged CSS
add_filter('swift_performance_css_content', function($css, $key){
if ($key == 'all'){
$css .= '.some-extra-css{color:#ff0000}';
}
return $css;
}, 10, 2);