Un motore di ricerca WordPress per sviluppatori e autori di temi



_config_wp_siteurl ›

Da2.2.0
Deprecaton/a
_config_wp_siteurl ( $url = '' )
Accedi:
  • private
Parametri:
  • (string) $url URL to set the WordPress site location.
    Richiesto: No
    Default: (vuoto)
Vedi:
  • WP_SITEURL
Ritorna:
  • (string) The WordPress Site URL.
Definito a:
Codex:

Retrieve the WordPress site URL.

If the constant named 'WP_SITEURL' is defined, then the value in that constant will always be returned. This can be used for debugging a site on your localhost while not having to change the database to your URL.



Sorgenti

function _config_wp_siteurl( $url = '' ) {
	if ( defined( 'WP_SITEURL' ) ) {
		return untrailingslashit( WP_SITEURL );
	}
	return $url;
}