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

bond138 on "Autoptimize conflicts with WP Visual Composer"

$
0
0

Hi Frank

You will be pleased to know it's working now. It was may fault I'm afraid to say.

I cut part of the code out of the helper example and part from the thread relating to the issue with the Beaver plugin. In doing this I missed the closing tag for the REM statement hence the helper plugin even though activated it did nothing.

So to clarify this works perfectly -

/* autoptimize_filter_noptimize: stop autoptimize from optimizing, if user is logged in

@return: boolean, true or false */
add_filter('autoptimize_filter_noptimize','visual_noptimize',10,0);
function visual_noptimize() {
	if (is_user_logged_in()) {
		return true;
	} else {
		return false;
	}
}

Please accept my apologies for this and thank you for being so diligent in looking for a solution.

Best regards

Peter


Viewing all articles
Browse latest Browse all 14038

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>