um_submit_account_errors_hook()
um_submit_account_errors_hook(array $args) : mixed
Validate for errors in account form
Parameters
array | $args |
um_maybe_flush_users_session_update_user(bool $send, array $user, array $userdata) : bool
Maybe clear all sessions except current after changing email. Because email can be used for login.
Using a proper hook that triggers on email changed action in WordPress native handlers. It starts to work sitewide in UM Account and there wp_update_user with new user_email attribute is used.
bool | $send | Whether to send the email. |
array | $user | The original user array. |
array | $userdata | The updated user array. |