Created
August 1, 2019 10:33
-
-
Save plugin-republic/dbf02f450259e6482a2822bacce8cc41 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* @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