wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_should_replace_insecure_home_url › WordPress过滤钩子

Since5.7.0
已弃用n/a
apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url )
参数:
  • (bool) $should_replace_insecure_home_url Whether insecure HTTP URLs to the site should be replaced.
    Required: Yes
定义在:
文档:

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.





源码

return apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url );