Last active
February 5, 2016 20:14
-
-
Save kjohnson/b21f531a419004f1cabe to your computer and use it in GitHub Desktop.
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 | |
function check_example_setting( $setting ) | |
{ | |
// Check for errors... | |
if( $has_errors ) { | |
$setting['errors'][] = __('The value that you have entered appears to be invalid.', 'ninja-forms-example'); | |
} | |
return $setting; | |
} | |
add_filter( 'ninja_forms_check_setting_example_setting', 'check_example_setting', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment