Action Hooks Associated With Password

Action: wp_travel_customer_reset_password #

Fire during customer password reset.

Source

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

Parameters
$user

Example:

function prefix_wp_travel_customer_reset_password( $user ) {
    // Code here.
}
add_action( 'wp_travel_customer_reset_password', 'prefix_wp_travel_customer_reset_password'  );

Action: validate_password_reset #

Fire during customer password reset.

Source

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

Parameters
$errors, $user

Example:

function prefix_validate_password_reset( $errors, $user ) {
    // Code here.
}
add_action( 'validate_password_reset', 'prefix_validate_password_reset'  );

Action: lostpassword_post #

Fire while handling sending password retrieval email to customer.

Source

File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php

Parameters
$errors

Example:

function prefix_lostpassword_post( $errors ) {
    // Code here.
}
add_action( 'lostpassword_post', 'prefix_lostpassword_post'  );

Action: retrieve_password #

Fire while handling sending password retrieval email to customer.

Source

File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php

Parameters
$user_login

Example:

function prefix_retrieve_password( $user_login ) {
    // Code here.
}
add_action( 'retrieve_password', 'prefix_retrieve_password'  );

Action: password_reset #

Fire during customer password reset.

Source

File: /inc/class-wp-travel-user-account.php
Used by: /inc/class-wp-travel-user-account.php

Parameters
$user, $new_pass

Example:

function prefix_password_reset( $user, $new_pass ) {
    // Code here.
}
add_action( 'password_reset', 'prefix_password_reset'  );

Action: wp_travel_after_registration_form_password #

Fire after user registration form password.

Source

File: /templates/account/form-login.php
Used by: /templates/account/form-login.php

Example:

function prefix_wp_travel_after_registration_form_password() {
  esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_after_registration_form_password', 'prefix_wp_travel_after_registration_form_password’ );

Action: wp_travel_lostpassword_form #

Fire before user reset password button.

Source

File: /templates/account/form-lostpassword.php
Used by: /templates/account/form-lostpassword.php

Example:

function prefix_wp_travel_lostpassword_form() {
  esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_lostpassword_form', 'prefix_wp_travel_lostpassword_form’ );

Action: wp_travel_resetpassword_form #

Fire before save button of reset password form.

Source

File: /templates/account/form-reset-password.php
Used by: /templates/account/form-reset-password.php

Example:

function prefix_wp_travel_resetpassword_form() {
  esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_resetpassword_form', 'prefix_wp_travel_resetpassword_form’ );