wp_update_urls_to_https ( No parameters )

  • (bool) True on success, false on failure.
Defined at:


Update the 'home' and 'siteurl' option to use the HTTPS variant of their URL.If this update does not result in WordPress recognizing that the site is now using HTTPS (e.g. due to constants overriding the URLs used), the changes will be reverted. In such a case the function will return false.

Related Functions

wp_update_custom_css_post, wp_update_themes, wp_update_post, wp_update_user, wp_get_update_https_url

Top Google Results

User discussions

wpseek mobile