WP_Application_Passwords::set_user_application_passwords()wp-includes/class-wp-application-passwords.php | Sets a user’s application passwords. |
wp_initialize_site()wp-includes/ms-site.php | Runs the initialization routine for a given site. |
wp_localize_community_events()wp-includes/script-loader.php | Localizes community events data that needs to be passed to dashboard.js. |
wp_ajax_get_community_events()wp-admin/includes/ajax-actions.php | Handles Ajax requests for community events |
WP_Screen::render_meta_boxes_preferences()wp-admin/includes/class-wp-screen.php | Renders the meta boxes preferences. |
wp_ajax_save_wporg_username()wp-admin/includes/ajax-actions.php | Handles saving the user’s WordPress.org username via AJAX. |
WP_User_Meta_Session_Tokens::update_sessions()wp-includes/class-wp-user-meta-session-tokens.php | Updates the user’s sessions in the usermeta table. |
choose_primary_blog()wp-admin/includes/ms.php | Handles the display of choosing a user’s primary site. |
send_confirmation_on_profile_email()wp-includes/user.php | Sends a confirmation request email when a change of user email address is attempted. |
set_screen_options()wp-admin/includes/misc.php | Saves option for number of rows when listing posts, pages, comments, etc. |
populate_network()wp-admin/includes/schema.php | Populate network settings. |
wp_install()wp-admin/includes/upgrade.php | Installs the site. |
wp_install_defaults()wp-admin/includes/upgrade.php | Creates the initial content for a newly-installed site. |
default_password_nag_handler()wp-admin/includes/user.php | |
default_password_nag_edit_user()wp-admin/includes/user.php | |
WP_Plugin_Install_List_Table::prepare_items()wp-admin/includes/class-wp-plugin-install-list-table.php | |
wp_ajax_save_user_color_scheme()wp-admin/includes/ajax-actions.php | Handles auto-saving the selected color scheme for a user’s own profile via AJAX. |
wp_ajax_dismiss_wp_pointer()wp-admin/includes/ajax-actions.php | Handles dismissing a WordPress pointer via AJAX. |
wp_ajax_closed_postboxes()wp-admin/includes/ajax-actions.php | Handles closed post boxes via AJAX. |
wp_ajax_hidden_columns()wp-admin/includes/ajax-actions.php | Handles hidden columns via AJAX. |
wp_ajax_update_welcome_panel()wp-admin/includes/ajax-actions.php | Handles updating whether to display the welcome panel via AJAX. |
wp_ajax_meta_box_order()wp-admin/includes/ajax-actions.php | Handles saving the meta box order via AJAX. |
wp_nav_menu_setup()wp-admin/includes/nav-menu.php | Register nav menu meta boxes and advanced menu items. |
wp_initial_nav_menu_meta_boxes()wp-admin/includes/nav-menu.php | Limit the amount of meta boxes to pages, posts, links, and categories for first time users. |
WP_User::update_user_level_from_caps()wp-includes/class-wp-user.php | Updates the maximum user level for the user. |
WP_User::add_cap()wp-includes/class-wp-user.php | Adds capability and grant or deny access to capability. |
WP_User::remove_cap()wp-includes/class-wp-user.php | Removes capability from user. |
WP_User::add_role()wp-includes/class-wp-user.php | Adds role to user. |
WP_User::remove_role()wp-includes/class-wp-user.php | Removes role from user. |
WP_User::set_role()wp-includes/class-wp-user.php | Sets the role of the user. |
reset_password()wp-includes/user.php | Handles resetting the user’s password. |
register_new_user()wp-includes/user.php | Handles registering a new user. |
wp_insert_user()wp-includes/user.php | Inserts a user into the database. |
update_user_option()wp-includes/user.php | Updates user option with global blog capability. |
add_new_user_to_blog()wp-includes/ms-functions.php | Adds a newly created user to the appropriate blog |
get_active_blog_for_user()wp-includes/ms-functions.php | Gets one of a user’s active blogs. |
add_user_to_blog()wp-includes/ms-functions.php | Adds a user to a blog, along with specifying the user’s role. |
remove_user_from_blog()wp-includes/ms-functions.php | Removes a user from a blog. |
update_user_meta()
will update ALL user meta of the same key UNLESS you specify a specific record out of the set that you want to replace.Here’s a way to do that, specifically for the instance where you have user meta that may look like this:
how to check for errors