wp_should_replace_insecure_home_url


wp_should_replace_insecure_home_url ( No parameters )

Returns:
  • (bool) True if insecure URLs should replaced, false otherwise.
Defined at:

Description

Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.If a WordPress site had its URL changed from HTTP to HTTPS, by default this will return `true`, causing WordPress to add frontend filters to replace insecure site URLs that may be present in older database content. The {@see 'wp_should_replace_insecure_home_url'} filter can be used to modify that behavior.

Related Functions

wp_replace_insecure_home_url, wp_replace_in_html_tags, _wp_dashboard_recent_comments_row, wp_dashboard_recent_comments_control, wp_dashboard_recent_comments

Top Google Results

User discussions

wpseek mobile