Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created August 1, 2019 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/dbf02f450259e6482a2822bacce8cc41 to your computer and use it in GitHub Desktop.
Save plugin-republic/dbf02f450259e6482a2822bacce8cc41 to your computer and use it in GitHub Desktop.
<?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