wp_update_https_migration_required
- %1$s is private and should not be used in themes or plugins directly.
wp_update_https_migration_required ( $old_url, $new_url )
Access:Parameters:- (mixed) old_url Previous value of the URL option.
- (mixed) new_url New value of the URL option.
Defined at: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Updates the 'https_migration_required' option if needed when the given URL has been updated from HTTP to HTTPS.If this is a fresh site, a migration will not be required, so the option will be set as `false`.
This is hooked into the {@see 'update_option_home'} action.