wp_update_urls_to_https


wp_update_urls_to_https ( No parameters )

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

Description

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_user_counts, wp_update_custom_css_post, wp_update_themes, wp_update_post, wp_update_site

Top Google Results

User discussions

wpseek mobile