Filter hook 'wp_should_replace_insecure_home_url'
in WP Core File wp-includes/https-migration.php at line 37
Description
Filters 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`. This filter can be used to disable that behavior, e.g. after having replaced URLs manually in the database.
Occurrences
Filename |
Line Number |
wp-includes/https-migration.php |
37 |
Parameters
Type |
Name |
Description |
bool |
$should_replace_insecure_home_url |
Whether insecure HTTP URLs to the site should be replaced. |
PHP Doc
/**
* Filters 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`. This filter can
* be used to disable that behavior, e.g. after having replaced URLs manually in the database.
*
* @since 5.7.0
*
* @param bool $should_replace_insecure_home_url Whether insecure HTTP URLs to the site should be replaced.
*/