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

Divi Theme Settings
Divi Theme Settings

WP Fastest Cache works well with the Divi Theme, but Divi’s speed optimization features can sometimes cause errors. To avoid…

Placeholder Image
htaccess Gzip doesn’t work

Sometimes the files are not compressed although the gzip option has already been enabled.

Placeholder Image
Exclude Urls by Calling the Function Hook

It is very simple to exclude any url from the cache. You can call the following function in a theme…

Ready to get started?

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