Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Sure, you can tell AO not to optimize based on e.g. (a string in) the URL via the API (and more specifically the “autoptimize_filter_noptimize”-filter. There’s an example of how to exclude pages based on the URL in wp-content/plugins/autoptimize/autoptimize_helper.php_example.

    Kind regards,
    frank

    Thread Starter lsilver

    (@lsilver)

    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;
    	}
    }
    Plugin Author Frank Goossens

    (@futtta)

    you’ll have to uncomment the first line (“//” means the line is a comment and as such is not active).

    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any way of not minifying specific admin pages?’ is closed to new replies.