WordPress at a glance
function is not described

_config_wp_home() WP 2.2.0

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.

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. Homepage location.

Usage

_config_wp_home( $url );
$url(string)
URL for the home location.

Notes

  • See: WP_HOME

Changelog

Since 2.2.0 Introduced.

Code of _config_wp_home() WP 5.7.1

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