WordPress at Your Fingertips
function is not described

update_home_siteurl() WP 2.1.0

Flushes rewrite rules if siteurl, home or page_on_front changed.

No Hooks.

Return

null. Nothing.

Usage

update_home_siteurl( $old_value, $value );
$old_value(string) (required)
-
$value(string) (required)
-

Changelog

Since 2.1.0 Introduced.

Code of update_home_siteurl() WP 5.8.2

function update_home_siteurl( $old_value, $value ) {
	if ( wp_installing() ) {
		return;
	}

	if ( is_multisite() && ms_is_switched() ) {
		delete_option( 'rewrite_rules' );
	} else {
		flush_rewrite_rules();
	}
}