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_registration_auth_new_customer

Filter :wp_travel_registration_auth_new_customer

Filter for registration authentication for new customers enable/disable.

Source

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

Parameters
Default is true , $new_customer

Example:

function prefix_wp_travel_registration_auth_new_customer() {
    return false;
}
add_filter( 'wp_travel_registration_auth_new_customer', 'prefix_wp_travel_registration_auth_new_customer' );
Was this article helpful to you? Yes No

How can we help?