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.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String. The WordPress Site URL.

Usage

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

Notes

  • See: WP_SITEURL

Changelog

Since 2.2.0 Introduced.

Code of _config_wp_siteurl() WP 5.7.1

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