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



_config_wp_home ›

Desde2.2.0
Obsoleton/a
_config_wp_home ( $url = '' )
Acesso:
  • private
Parâmetros:
  • (string) $url URL for the home location.
    Required: No
    Padrão: (empty)
Ver:
  • WP_HOME
Retorna:
  • (string) Homepage location.
Definido em:
Codex:

Retrieve the WordPress home page URL.

If the constant named 'WP_HOME' exists, then it will be used and returned by the function. This can be used to counter the redirection on your local development environment.



Fonte

function _config_wp_home( $url = '' ) {
	if ( defined( 'WP_HOME' ) ) {
		return untrailingslashit( WP_HOME );
	}
	return $url;
}