Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active September 20, 2017 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/e15b861858256c8fab686ce2d8b42686 to your computer and use it in GitHub Desktop.
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/
<?php
/**
* Set Caldera Forms Pro to only log errors or higher
*/
add_action( 'caldera_forms_pro_minimum_level', function( $level ){
return 'ERROR';
});
<?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