Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created August 1, 2019 10:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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