wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_should_replace_insecure_home_url › Hooks de Filtros WordPress

Desde5.7.0
Obsoleton/a
apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url )
Parâmetros:
  • (bool) $should_replace_insecure_home_url Whether insecure HTTP URLs to the site should be replaced.
    Required: Yes
Definido em:
Codex:

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.





Fonte

return apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url );