Action Hooks Associated With Account

Action: wp_travel_before_edit_account_form #

Fire before user account edit form.

Source

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

Example:

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

Action: wp_travel_edit_account_form_start #

Fire inside user account edit form but before first name field.

Source

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

Example:

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

Action: wp_travel_edit_account_form #

Fire before the user account edit save changes button.

Source

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

Example:

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

Action: wp_travel_edit_account_form_end #

Fire after the user account edit save changes button.

Source

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

Example

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

Action: wp_travel_after_edit_account_form #

Fire after the user account edit form.

Source

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

Example:

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

Action: wp_travel_user_dashboard_after_account_info #

Fire after account info in user dashboard.

Source

File: /templates/account/tab-content/dashboard.php
Used by: /templates/account/tab-content/dashboard.php

Example:

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