WordPress at Your Fingertips
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.


String. The WordPress Site URL.


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



Code of _config_wp_siteurl() WP 5.8.3

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