Last active
September 20, 2017 23:27
-
-
Save Shelob9/e15b861858256c8fab686ce2d8b42686 to your computer and use it in GitHub Desktop.
Filter to change the minimum severity of a message to be logged in Caldera Forms Pro. See: https://calderaforms.com/doc/caldera_forms_pro_minimum_level/
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 | |
/** | |
* Set Caldera Forms Pro to only log errors or higher | |
*/ | |
add_action( 'caldera_forms_pro_minimum_level', function( $level ){ | |
return 'ERROR'; | |
}); | |
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 | |
/** | |
* Set Caldera Forms Pro to only log warnings or higher | |
*/ | |
add_action( 'caldera_forms_pro_minimum_level', function( $level ){ | |
return 'WARNING'; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment