Skip to content

Instantly share code, notes, and snippets.

@spivurno
Last active February 11, 2017 14:09
Show Gist options
  • Save spivurno/11fad34fb207638f92ce6b13c82d903b to your computer and use it in GitHub Desktop.
Save spivurno/11fad34fb207638f92ce6b13c82d903b to your computer and use it in GitHub Desktop.
Gravity Perks // GP Limit Checkboxes // Validation Messages
<?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