Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Login/Registration
  5. Filter :wp_travel_process_registration_errors

Filter :wp_travel_process_registration_errors

Filter for user registration form validation error.

Source

File: /inc/class-wp-travel-form-handler.php
Used by: /inc/class-wp-travel-form-handler.php

Parameters
$validation_error, $username, $password, $email

Example:

function prefix_wp_travel_process_registration_errors( $validation_error, $username, $password, $email ) {
    $validation_error = ‘ERROR VALIDATION HERE’;
    return $validation_error;
}
add_filter( 'wp_travel_process_registration_errors', 'prefix_wp_travel_process_registration_errors', 12, 3 );
Was this article helpful to you? Yes No

How can we help?