Un motore di ricerca WordPress per sviluppatori e autori di temi



_config_wp_home ›

Da2.2.0
Deprecaton/a
_config_wp_home ( $url = '' )
Accedi:
  • private
Parametri:
  • (string) $url URL for the home location.
    Richiesto: No
    Default: (vuoto)
Vedi:
  • WP_HOME
Ritorna:
  • (string) Homepage location.
Definito a:
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.



Sorgenti

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