update_home_siteurl

Definition:
function update_home_siteurl( $old_value, $value ) {}

If siteurl or home changed, flush rewrite rules.

Parameters

  • unknown_type $old_value
  • unknown_type $value

Source code

function update_home_siteurl( $old_value, $value ) {

	global $wp_rewrite;



	if ( defined( "WP_INSTALLING" ) )

		return;



	// If home changed, write rewrite rules to new location.

	$wp_rewrite->flush_rules();

}

3173

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: