is there a filter for removing style-tags from the <head></head>
area in wordpress?
I want remove this style for instance:
<head>
<style>
@import url('https://fonts.googleapis.com/css?family=Chilanka&display=swap');
</style>
</head>
I already achieved to remove link-tags by using this wordpress filter and some regex:
add_filter( 'style_loader_tag', 'removeGoogleLinks');
I guess i havbe to use wp_head somehow but I'm not sure how to use this as filter?
add_filter( 'wp_head', $removeGoogleFontStyle);
public function removeGoogleFontStyle($content){
//Filter googleapi styles with regex but
//how to use this funtion/filter?
}