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 comment