Title: Allow developer to customize verification error message
Last modified: August 22, 2016

---

# Allow developer to customize verification error message

 *  [prbsparx](https://wordpress.org/support/users/prbsparx/)
 * (@prbsparx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/allow-developer-to-customize-verification-error-message/)
 * Modify the following function to allow the developer to add an error message 
   if the user has not verified. Thank you!
 * /* register-plus-redux/rpr-login.php */
 * public /*.object.*/ function rpr_authenticate( /*.object.*/ $user, /*.string.*/
   $username, /*.string.*/ $password) {
    if ( !empty($user) && !is_wp_error( $user)){
   if ( NULL !== get_role( ‘rpr_unverified’ ) && in_array( ‘rpr_unverified’, $user-
   >roles ) ) { //return null; return new WP_Error( ‘unverified’, __( “You have 
   not yet verified your email address, please find the verification email you should
   have received immediately after you registered. The email was sent by [info@waltonbeachnourishment.com](https://wordpress.org/support/topic/allow-developer-to-customize-verification-error-message/info@waltonbeachnourishment.com?output_format=md)”));}}
   return $user; }
 * [https://wordpress.org/plugins/register-plus-redux/](https://wordpress.org/plugins/register-plus-redux/)

The topic ‘Allow developer to customize verification error message’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/register-plus-redux.svg)
 * [Register Plus Redux](https://wordpress.org/plugins/register-plus-redux/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/register-plus-redux/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/register-plus-redux/)
 * [Active Topics](https://wordpress.org/support/plugin/register-plus-redux/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/register-plus-redux/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/register-plus-redux/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [prbsparx](https://wordpress.org/support/users/prbsparx/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/allow-developer-to-customize-verification-error-message/)
 * Status: not resolved