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

worldtravelgeek on "Autoptimize conflicts with WP Beaver Builder"

$
0
0

ah, it's me who misunderstood actually; you want to be able to use Beaver builder yourself to add images, after which your visitors will see that image, but won't be able to add images themselves? something like that?

excactly! ;)

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

Cool ... I add this to a autoptimize_helper.php in the root folder of the plugin I assume ? :)


Viewing all articles
Browse latest Browse all 14052


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