Last active
February 11, 2017 14:09
-
-
Save spivurno/11fad34fb207638f92ce6b13c82d903b to your computer and use it in GitHub Desktop.
Gravity Perks // GP Limit Checkboxes // Validation Messages
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 | |
/** | |
* Gravity Perks // GP Limit Checkboxes // Validation Messages | |
* http://gravitywiz.com/documentation/gp-limit-checkboxes/ | |
*/ | |
add_filter( 'gplc_validation_message_field_under_min', function( $message, $form, $field_id, $group ) { | |
return _n( 'You must select at least %s item.', 'You must select at least %s items.', $group['min'] ); | |
}, 10, 4 ); | |
// Other avialable filters: | |
// gplc_validation_message_field_under_min | |
// gplc_validation_message_field_over_max | |
// gplc_validation_message_group_under_min | |
// gplc_validation_message_group_over_max |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment