WordPress at a glance
function is not described

_config_wp_siteurl() WP 2.2.0

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.

No Hooks.

Return

String. The WordPress Site URL.

Usage

_config_wp_siteurl( $url );
$url(string)
URL to set the WordPress site location.
Default: ''

Notes

  • See: WP_SITEURL

Changelog

Since 2.2.0 Introduced.

Code of config wp siteurl: wp-includes/functions.php WP 5.2.2

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