wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_config_wp_home › WordPress Function

Depuis2.2.0
Dépréciéen/a
_config_wp_home ( $url = '' )
Accès:
  • private
Paramètres:
  • (string) $url URL for the home location.
    Requis: Non
    Défaut: (vide)
Voir:
  • WP_HOME
Retourne:
  • (string) Homepage location.
Défini(e) dans:
Codex:

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


Source

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