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 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.


Top ↑

Parameters Parameters

$should_replace_insecure_home_url

(bool) Whether insecure HTTP URLs to the site should be replaced.


Top ↑

Source Source

File: wp-includes/https-migration.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.