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 | |
/** | |
* Double Confirmation Fields | |
* http://gravitywiz.com/2012/05/01/custom-field-confirmation/ | |
*/ | |
register_confirmation_fields( 10, array( 1, 2 ), 'Your custom messages do not match.' ); | |
add_filter( 'gform_validation', 'gfcf_validation' ); | |
function gfcf_validation( $validation_result ) { |