Created
April 9, 2019 16:34
-
-
Save Pebblo/ad220de2e7a61e65da07ab8469c47e44 to your computer and use it in GitHub Desktop.
This tells EE not to load any assets when using Tip builder on the site.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Please do not include the opening PHP tag if you already have one | |
add_filter('FHEE__EE_System__canLoadBlocks', 'tw_disable_ee_blocks_for_tipi_builder'); | |
function tw_disable_ee_blocks_for_tipi_builder() { | |
if(! empty( $_REQUEST['tipi_builder'] ) ) { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment