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_login_errors

Filter :wp_travel_login_errors

Filter for login error notice.

Source

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

Parameters
Default is ‘__( ‘Error :Invalid Username or Password’, ‘wp-travel’ ).’

Example:

function prefix_wp_travel_login_errors() {
    return ‘__( '<strong>Error :</strong>Username/Password not
    valid.', 'wp-travel' )’;
}
add_filter( 'wp_travel_login_errors', 'prefix_wp_travel_login_errors' );
Was this article helpful to you? Yes No

How can we help?