Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 142888

Adding Code To Stop visual composer?

$
0
0

Replies: 0

I saw in the FAQ that it is a good idea NOT to allow visual composer etc to be optimised. The following code is given:

—————
add_filter(‘autoptimize_filter_noptimize’,’pagebuilder_noptimize’,10,0);
function pagebuilder_noptimize() {
if (is_user_logged_in()) {
return true;
} else {
return false;
}
}
——————-

Please could you tell me where to put this code?

Thanks.


Viewing all articles
Browse latest Browse all 142888

Trending Articles



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