Support » Plugin: Autoptimize » How to exclude certain pages from being ‘autooptimised’?

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters


    it is, with a couple of lines of code hooking into AO’s api, for example to stop AO on the /contact/map page you would use this;

    function carolineelisa_noptimize() {
    	if ( strpos($_SERVER['REQUEST_URI'], '/contact/map' ) !== false ) {
    		return true;
    	} else {
    		return false;

    hope this helps,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.