Modify Minified CSS by Calling the Function Hook

by admin

You can write your own function that will modify the content of minified or combined css sources before saving.

add_filter('wpfc_css_content', "your_function", 10, 1);

function your_function($content){
	//you can run whatever you want
	return $content
}

Related articles

Placeholder Image
CDN Font Problem

Sometimes the fonts do not work after cdn integration because some browsers refuse to embed the fonts which come from…

Placeholder Image
Buffer Callback Filter

You can use the Buffer Callback Filter feature to make any changes to the html source of a page or…

How to Serve WebP Images on Nginx
How to Serve WebP Images on Nginx

After the images are optimized, they are served as webp on Apache servers automatically. However, this situation is not possible…

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.