Created
October 9, 2017 03:25
-
-
Save carlosonweb/8f730689d75b75f06215f144c6ef9705 to your computer and use it in GitHub Desktop.
Fix issue between BB and Event Espresso
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
// Issue: Event Espresso is outputting data to the page which is not needed by BB. | |
// https://cl.ly/mxHS | |
// -------------------------------------------------------------------------------- | |
function ee_bb_suppress_notices(){ | |
if (class_exists('FLBuilderModel') && (FLBuilderModel::is_builder_enabled())){ | |
add_filter( 'FHEE__EE_Front_Controller__display_errors', '__return_false' ); | |
} | |
} | |
add_action('wp', 'ee_bb_suppress_notices', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment