Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14093

lsilver on "[Plugin: Autoptimize] Any way of not minifying specific admin pages?"

$
0
0

So I added the code below to my functions.php file but it looks like it's still optimizing. Did I do this correctly?

// add_filter('autoptimize_filter_noptimize','my_ao_noptimize',10,0);
function my_ao_noptimize() {
	if (strpos($_SERVER['REQUEST_URI'],'?fl_builder')!==false) {
		return true;
	} else {
		return false;
	}
}

Viewing all articles
Browse latest Browse all 14093

Trending Articles