On this page
apply_filters( 'wp_should_replace_insecure_home_url', bool $should_replace_insecure_home_url )
Filters whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
Description
If a WordPress site had its URL changed from HTTP to HTTPS, by default this will return true. This filter can be used to disable that behavior, e.g. after having replaced URLs manually in the database.
Parameters
$should_replace_insecure_home_urlbool-
Whether insecure HTTP URLs to the site should be replaced.
Source
File: wp-includes/https-migration.php. View all references
return apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url );
Related
Used By
| Used By | Description |
|---|---|
| wp_should_replace_insecure_home_url() wp-includes/https-migration.php | Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart. |
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_should_replace_insecure_home_url