Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* @param $message The validation message
* @param $label The field label
* @param $item The field object
*/
function prefix_filter_validation_notice( $message, $label, $item ) {
$message = __( 'My new validation message for' );
$message .= $label;
return $message;
}
add_filter( 'pewc_filter_validation_notice', 'prefix_filter_validation_notice', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment