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



allowed_redirect_hosts › Hooks de Filtros WordPress

Desde2.3.0
Obsoleton/a
apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] )
Parâmetros: (2)
  • (string[]) $hosts An array of allowed host names.
    Required: Yes
  • (string) $host The host name of the redirect destination; empty string if not set.
    Required: Yes
Definido em:
Codex:

Filters the list of allowed hosts to redirect to.





Fonte

$allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' );