wp_update_user( array|object|WP_User $userdata ): int|WP_Error
- Since
- 2.0.0
- Source
wp-includes/user.php:2576
Description
It is possible to update a user's password by specifying the 'user_pass' value in the $userdata parameter array.
If current user's password is being updated, then the cookies will be cleared.
Compatibility
- WordPress
- since 2.0.0
- PHP
- 7.4–8.6-dev
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.
Parameters
$userdataarray|object|WP_User- An array of user data or a user object of type stdClass or WP_User.
Return value
int|WP_Error- The updated user's ID or a WP_Error object if the user could not be updated.
Performance profile
How much work a call to wp_update_user() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Expensive
- Scaling
- Scales with input
- Instructions
- 19–293
- Plugin surface
- 6 hooks
- Called by
- 6
Sends mail via wp_mail().
The body loops, so the work grows with what you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 328.
Third-party callbacks on 'send_password_change_email', 'send_email_change_email', 'password_change_email' run inside this call, and their cost is not bounded by anything here.
6 places in core call this, so the cost is paid more often than your own code shows.
What it touches
- hookthird-party callbacks
apply_filters()called directly - optionoption read or write
get_option()called directly - mailsends mail
wp_mail()called directly - querycontent query
get_user_by()one call below wp_update_user() - cacheobject cache
wp_cache_delete()one call below wp_update_user() - serializeserialisation
maybe_unserialize()one call below wp_update_user()
Further down the call graph this can also reach transient. That is the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 150 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost wp_update_user() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
!($userdata instanceof) && !isset($userdata) | 19 | __() |
!($userdata instanceof) && !isset($userdata) | 24 | get_userdata(), __() |
!($userdata instanceof) && is_wp_error() | 49–60 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error() |
!($userdata instanceof) && isset($userdata) && is_wp_error() | 60–67 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error() |
!($userdata instanceof) && !empty($userdata) && is_wp_error() | 68–74 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && is_wp_error() | 79–81 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 79–92 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 81–96 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 81–94 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 83–98 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 90–99 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 92–103 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), do_action() |
138 further outcomes, up to 293 instructions
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 92–101 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 94–105 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 98–106 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 100–110 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 100–108 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 102–112 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 104–115 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 106–119 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 106–117 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 108–121 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 109–113 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 110–122 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 111–117 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 111–115 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 112–126 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 112–124 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 113–119 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 114–128 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 115–122 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 117–126 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 117–124 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 119–128 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 121–129 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 123–129 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 123–133 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 123–131 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 125–133 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 125–131 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 125–135 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 127–135 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 129–136 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 131–140 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 131–138 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 133–142 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 134–136 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 136–140 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 136–138 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 138–142 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 140–143 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 142–147 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 142–145 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 144–149 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 148–167 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() | 150–171 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 150–169 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() | 152–173 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 159–174 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() | 161–178 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 161–176 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() | 163–180 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 167–181 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() | 169–185 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 169–183 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() | 171–187 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 173–190 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 175–194 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 175–192 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 177–196 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 178–188 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 179–197 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() | 180–192 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) | 180–190 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 181–201 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 181–199 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() | 182–194 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 183–203 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 184–197 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 186–201 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 186–199 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 188–203 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 190–204 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 192–204 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 192–208 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 192–206 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 194–208 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 194–206 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 194–210 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 196–210 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 198–211 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 200–215 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 200–213 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 202–217 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 203–211 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 205–215 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 205–213 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 207–217 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 209–218 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 211–222 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && empty($send_password_change_email) && empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 211–220 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 213–224 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() | 223–236 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 225–240 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() | 225–238 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 227–242 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() | 234–243 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 236–247 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() | 236–245 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 238–249 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() | 242–250 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 244–254 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() | 244–252 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 246–256 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 248–259 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 250–263 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 250–261 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 252–265 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() | 253–257 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 254–266 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 255–261 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() | 255–259 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 256–270 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 256–268 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) | 257–263 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), do_action() |
!($userdata instanceof) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 258–272 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 259–266 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 261–270 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 261–268 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 263–272 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 265–273 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 267–273 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 267–277 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 267–275 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 269–277 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 269–275 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 269–279 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 271–279 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 273–280 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 275–284 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 275–282 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 277–286 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 278–280 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 280–284 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 280–282 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie === false | 282–286 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 284–287 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 286–291 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 286–289 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
!($userdata instanceof) && !empty($userdata) && isset($userdata) && !is_wp_error() && !empty($send_password_change_email) && !empty($send_email_change_email) && $user_id === false && isset($plaintext_pass) && $logged_in_cookie !== false | 288–293 | get_userdata(), ->to_array(), _get_additional_user_keys(), add_magic_quotes(), wp_hash_password(), apply_filters(), apply_filters(), clean_user_cache(), array_merge(), wp_insert_user(), is_wp_error(), get_option(), wp_specialchars_decode(), switch_to_user_locale(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), __(), __(), apply_filters(), get_option(), home_url(), sprintf(), wp_mail(), restore_previous_locale(), wp_get_current_user(), wp_clear_auth_cookie(), wp_parse_auth_cookie(), apply_filters(), time(), wp_set_auth_cookie(), do_action() |
This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.
Across PHP versions
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 328 | 19–293 | 21 | |
| 8.5 | 328 | 19–293 | 21 | |
| 8.4 | 328 | 19–293 | 21 | 33 fewer instructions than PHP 8.3 |
| 8.3 | 361 | 19–326 | 21 | |
| 8.2 | 361 | 19–326 | 21 | |
| 8.1 | 361 | 19–326 | 21 | 1 fewer instruction than PHP 7.4 |
| 7.4 | 362 | 19–327 | 21 |
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Hooks and filters fired · 6
6 hooks fire while wp_update_user() runs, in this order:
- apply_filters( send_password_change_email )filterline 2622 (+46 into the body)
Filters whether to send the password change email.
- apply_filters( send_email_change_email )filterline 2637 (+61 into the body)
Filters whether to send the email change email.
- apply_filters( password_change_email )filterline 2704 (+128 into the body)
Filters the contents of the email sent when the user's password is changed.
- apply_filters( email_change_email )filterline 2763 (+187 into the body)
Filters the contents of the email sent when the user's email is changed.
- apply_filters( auth_cookie_expiration )filterline 2791 (+215 into the body)
Filters the duration of the authentication cookie expiration period.
- do_action( wp_update_user )actionline 2812 (+236 into the body)
Fires after the user has been updated and emails have been sent.
Uses · 22
- __()Retrieves the translation of $text.
- get_userdata()Retrieves user info by user ID.
- _get_additional_user_keys()Returns a list of meta keys to be (maybe) populated in wp_update_user().
- get_user_meta()Retrieves user meta field for a user.
- add_magic_quotes()Walks the array while sanitizing the contents.
- wp_hash_password()Creates a hash of a plain text password.
- apply_filters()Calls the callback functions that have been added to a filter hook.
- clean_user_cache()Cleans all user caches.
- wp_insert_user()Inserts a user into the database.
- is_wp_error()Checks whether the given variable is a WordPress Error.
- wp_specialchars_decode()Converts a number of HTML entities into their special characters.
- get_option()Retrieves an option value based on an option name.
Show all 22
- switch_to_user_locale()Switches the translations according to the given user's locale.
- home_url()Retrieves the URL for the current site where the front end is accessible.
- wp_mail()Sends an email, similar to PHP's mail function.
- restore_previous_locale()Restores the translations according to the previous locale.
- wp_get_current_user()Retrieves the current user object.
- wp_clear_auth_cookie()Removes all of the cookies associated with authentication.
- wp_parse_auth_cookie()Parses a cookie into its components.
- wp_set_auth_cookie()Sets the authentication cookies based on user ID.
- do_action()Calls the callback functions that have been added to an action hook.
- WP_Error::__construct()Initializes the error.
Used by · 6
- WP_REST_Users_Controller::create_item()Creates a single user.
- WP_REST_Users_Controller::update_item()Updates a single user.
- edit_user()Edit user settings based on contents of $_POST
- get_password_reset_key()Creates, stores, then returns a password reset key for user.
- wp_install()Installs the site.
- wp_xmlrpc_server::wp_editProfile()Edits user's profile.
Source code
function wp_update_user( $userdata ) { if ( $userdata instanceof stdClass ) { $userdata = get_object_vars( $userdata ); } elseif ( $userdata instanceof WP_User ) { $userdata = $userdata->to_array(); } $userdata_raw = $userdata; $user_id = isset( $userdata['ID'] ) ? (int) $userdata['ID'] : 0; if ( ! $user_id ) { return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) ); } // First, get all of the original fields. $user_obj = get_userdata( $user_id ); if ( ! $user_obj ) { return new WP_Error( 'invalid_user_id', __( 'Invalid user ID.' ) ); } $user = $user_obj->to_array(); // Add additional custom fields. foreach ( _get_additional_user_keys( $user_obj ) as $key ) { $user[ $key ] = get_user_meta( $user_id, $key, true ); } // Escape data pulled from DB. $user = add_magic_quotes( $user ); if ( ! empty( $userdata['user_pass'] ) && $userdata['user_pass'] !== $user_obj->user_pass ) { // If password is changing, hash it now. $plaintext_pass = $userdata['user_pass']; $userdata['user_pass'] = wp_hash_password( $userdata['user_pass'] ); /** * Filters whether to send the password change email. * * @since 4.3.0 * * @see wp_insert_user() For `$user` and `$userdata` fields. * * @param bool $send Whether to send the email. * @param array $user The original user array. * @param array $userdata The updated user array. */ $send_password_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata ); } if ( isset( $userdata['user_email'] ) && $user['user_email'] !== $userdata['user_email'] ) { /** * Filters whether to send the email change email. * * @since 4.3.0 * * @see wp_insert_user() For `$user` and `$userdata` fields. * * @param bool $send Whether to send the email. * @param array $user The original user array. * @param array $userdata The updated user array. */ $send_email_change_email = apply_filters( 'send_email_change_email', true, $user, $userdata ); } clean_user_cache( $user_obj ); // Merge old and new fields with new fields overwriting old ones. $userdata = array_merge( $user, $userdata ); $user_id = wp_insert_user( $userdata ); if ( is_wp_error( $user_id ) ) { return $user_id; } $blog_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); $switched_locale = false; if ( ! empty( $send_password_change_email ) || ! empty( $send_email_change_email ) ) { $switched_locale = switch_to_user_locale( $user_id ); }Changelog
Introduced in 2.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, from
src/wp-includes/user.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.