wp_replace_insecure_home_url
wp_replace_insecure_home_url ( $content )
Parameters:- (string) content Content to replace URLs in.
Returns:- (string) Filtered content.
Defined at: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Replaces insecure HTTP URLs to the site in the given content, if configured to do so.This function replaces all occurrences of the HTTP version of the site's URL with its HTTPS counterpart, if
determined via {@see}.