wp_replace_insecure_home_url()
Replaces insecure HTTP URLs to the site in the given content, if configured to do so.
Replaces insecure HTTP URLs to the site in the given content, if configured to do so.
Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
Updates the ‘https_migration_required’ option if needed when the given URL has been updated from HTTP to HTTPS.
Update the ‘home’ and ‘siteurl’ option to use the HTTPS variant of their URL.
Filters whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.