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 ? :)