Title: wp-includes/ms-functions.php | Page 2 of 4 | Developer.WordPress.org

---

# File: wp-includes/ms-functions.php

 * hook[blog_redirect_404](https://developer.wordpress.org/reference/hooks/blog_redirect_404/)
 * Filters the redirect URL for 404s on the main site.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/blog_redirect_404/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/blog_redirect_404/#uses)
   | Source: [wp-includes/ms-functions.php:2218](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2218-L2218)
 * function[wp_maybe_update_network_user_counts()](https://developer.wordpress.org/reference/functions/wp_maybe_update_network_user_counts/)
 * Updates the network-wide users count.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_maybe_update_network_user_counts/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_maybe_update_network_user_counts/#uses)
   | Source: [wp-includes/ms-functions.php:2549](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2549-L2558)
 * function[maybe_add_existing_user_to_blog()](https://developer.wordpress.org/reference/functions/maybe_add_existing_user_to_blog/)
 * Adds a new user to a blog by visiting /newbloguser/{key}/.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/maybe_add_existing_user_to_blog/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/maybe_add_existing_user_to_blog/#uses)
   | Source: [wp-includes/ms-functions.php:2240](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2240-L2277)
 * function[add_existing_user_to_blog()](https://developer.wordpress.org/reference/functions/add_existing_user_to_blog/)
 * Adds a user to a blog based on details from maybe_add_existing_user_to_blog().
 * Used by [1 function](https://developer.wordpress.org/reference/functions/add_existing_user_to_blog/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/add_existing_user_to_blog/#uses)
   | Source: [wp-includes/ms-functions.php:2293](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2293-L2312)
 * hook[added_existing_user](https://developer.wordpress.org/reference/hooks/added_existing_user/)
 * Fires immediately after an existing user is added to a site.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/added_existing_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/added_existing_user/#uses)
   | Source: [wp-includes/ms-functions.php:2307](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2307-L2307)
 * function[add_new_user_to_blog()](https://developer.wordpress.org/reference/functions/add_new_user_to_blog/)
 * Adds a newly created user to the appropriate blog
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_new_user_to_blog/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/add_new_user_to_blog/#uses)
   | Source: [wp-includes/ms-functions.php:2328](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2328-L2345)
 * function[fix_phpmailer_messageid()](https://developer.wordpress.org/reference/functions/fix_phpmailer_messageid/)
 * Corrects From host on outgoing mail to match the site domain.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/fix_phpmailer_messageid/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/fix_phpmailer_messageid/#uses)
   | Source: [wp-includes/ms-functions.php:2354](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2354-L2356)
 * function[is_user_spammy()](https://developer.wordpress.org/reference/functions/is_user_spammy/)
 * Determines whether a user is marked as a spammer, based on user login.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/is_user_spammy/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/is_user_spammy/#uses)
   | Source: [wp-includes/ms-functions.php:2367](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2367-L2377)
 * function[update_blog_public()](https://developer.wordpress.org/reference/functions/update_blog_public/)
 * Updates this blog’s ‘public’ setting in the global blogs table.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/update_blog_public/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/update_blog_public/#uses)
   | Source: [wp-includes/ms-functions.php:2389](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2389-L2391)
 * function[users_can_register_signup_filter()](https://developer.wordpress.org/reference/functions/users_can_register_signup_filter/)
 * Determines whether users can self-register, based on Network settings.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/users_can_register_signup_filter/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/users_can_register_signup_filter/#uses)
   | Source: [wp-includes/ms-functions.php:2400](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2400-L2403)
 * function[welcome_user_msg_filter()](https://developer.wordpress.org/reference/functions/welcome_user_msg_filter/)
 * Ensures that the welcome message is not empty. Currently unused.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/welcome_user_msg_filter/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/welcome_user_msg_filter/#uses)
   | Source: [wp-includes/ms-functions.php:2413](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2413-L2435)
 * function[force_ssl_content()](https://developer.wordpress.org/reference/functions/force_ssl_content/)
 * Determines whether to force SSL on content.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/force_ssl_content/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/force_ssl_content/#uses)
   | Source: [wp-includes/ms-functions.php:2445](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2445-L2455)
 * function[filter_SSL()](https://developer.wordpress.org/reference/functions/filter_ssl/)
 * Formats a URL to use https.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/filter_ssl/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/filter_ssl/#uses)
   | Source: [wp-includes/ms-functions.php:2467](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2467-L2477)
 * function[wp_schedule_update_network_counts()](https://developer.wordpress.org/reference/functions/wp_schedule_update_network_counts/)
 * Schedules update of the network-wide counts for the current network.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_schedule_update_network_counts/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_schedule_update_network_counts/#uses)
   | Source: [wp-includes/ms-functions.php:2484](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2484-L2492)
 * function[signup_nonce_fields()](https://developer.wordpress.org/reference/functions/signup_nonce_fields/)
 * Adds a nonce field to the signup page.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/signup_nonce_fields/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/signup_nonce_fields/#uses)
   | Source: [wp-includes/ms-functions.php:2176](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2176-L2180)
 * function[signup_nonce_check()](https://developer.wordpress.org/reference/functions/signup_nonce_check/)
 * Processes the signup nonce created in signup_nonce_fields().
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/signup_nonce_check/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/signup_nonce_check/#uses)
   | Source: [wp-includes/ms-functions.php:2190](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2190-L2200)
 * function[maybe_redirect_404()](https://developer.wordpress.org/reference/functions/maybe_redirect_404/)
 * Corrects 404 redirects when NOBLOGREDIRECT is defined.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/maybe_redirect_404/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/maybe_redirect_404/#uses)
   | Source: [wp-includes/ms-functions.php:2207](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2207-L2229)
 * hook[update_welcome_email](https://developer.wordpress.org/reference/hooks/update_welcome_email/)
 * Filters the content of the welcome email sent to the site administrator after
   site activation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/update_welcome_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/update_welcome_email/#uses)
   | Source: [wp-includes/ms-functions.php:1730](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1730-L1730)
 * hook[update_welcome_subject](https://developer.wordpress.org/reference/hooks/update_welcome_subject/)
 * Filters the subject of the welcome email sent to the site administrator after
   site activation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/update_welcome_subject/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/update_welcome_subject/#uses)
   | Source: [wp-includes/ms-functions.php:1756](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1756-L1756)
 * function[wpmu_welcome_user_notification()](https://developer.wordpress.org/reference/functions/wpmu_welcome_user_notification/)
 * Notifies a user that their account activation has been successful.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wpmu_welcome_user_notification/#used-by)
   | Uses [14 functions](https://developer.wordpress.org/reference/functions/wpmu_welcome_user_notification/#uses)
   | Source: [wp-includes/ms-functions.php:1896](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1896-L1976)
 * hook[wpmu_welcome_user_notification](https://developer.wordpress.org/reference/hooks/wpmu_welcome_user_notification/)
 * Filters whether to bypass the welcome email after user activation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wpmu_welcome_user_notification/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wpmu_welcome_user_notification/#uses)
   | Source: [wp-includes/ms-functions.php:1915](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1915-L1915)
 * hook[update_welcome_user_email](https://developer.wordpress.org/reference/hooks/update_welcome_user_email/)
 * Filters the content of the welcome email after user activation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/update_welcome_user_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/update_welcome_user_email/#uses)
   | Source: [wp-includes/ms-functions.php:1937](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1937-L1937)
 * hook[update_welcome_user_subject](https://developer.wordpress.org/reference/hooks/update_welcome_user_subject/)
 * Filters the subject of the welcome email after user activation.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/update_welcome_user_subject/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/update_welcome_user_subject/#uses)
   | Source: [wp-includes/ms-functions.php:1967](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1967-L1967)
 * function[get_current_site()](https://developer.wordpress.org/reference/functions/get_current_site/)
 * Gets the current network.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_current_site/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/get_current_site/#uses)
   | Source: [wp-includes/ms-functions.php:1992](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L1992-L1995)
 * function[get_most_recent_post_of_user()](https://developer.wordpress.org/reference/functions/get_most_recent_post_of_user/)
 * Gets a user’s most recent post.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_most_recent_post_of_user/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/get_most_recent_post_of_user/#uses)
   | Source: [wp-includes/ms-functions.php:2010](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2010-L2045)
 * function[check_upload_mimes()](https://developer.wordpress.org/reference/functions/check_upload_mimes/)
 * Checks an array of MIME types against a list of allowed types.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/check_upload_mimes/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/check_upload_mimes/#uses)
   | Source: [wp-includes/ms-functions.php:2065](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2065-L2076)
 * function[update_posts_count()](https://developer.wordpress.org/reference/functions/update_posts_count/)
 * Updates a blog’s post count.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/update_posts_count/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/update_posts_count/#uses)
   | Source: [wp-includes/ms-functions.php:2092](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2092-L2095)
 * function[wpmu_log_new_registrations()](https://developer.wordpress.org/reference/functions/wpmu_log_new_registrations/)
 * Logs the user email, IP, and registration date of a new site.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wpmu_log_new_registrations/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wpmu_log_new_registrations/#uses)
   | Source: [wp-includes/ms-functions.php:2108](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2108-L2131)
 * function[redirect_this_site()](https://developer.wordpress.org/reference/functions/redirect_this_site/)
 * Ensures that the current site’s domain is listed in the allowed redirect host
   list.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/redirect_this_site/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/redirect_this_site/#uses)
   | Source: [wp-includes/ms-functions.php:2146](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2146-L2148)
 * function[upload_is_file_too_big()](https://developer.wordpress.org/reference/functions/upload_is_file_too_big/)
 * Checks whether an upload is too big.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/upload_is_file_too_big/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/upload_is_file_too_big/#uses)
   | Source: [wp-includes/ms-functions.php:2158](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2158-L2169)

 [Previous Page](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/?output_format=md)

[1](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/?output_format=md)
2 [3](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/page/3/?output_format=md)
[4](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/page/4/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/page/3/?output_format=md)