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.

  • See: WP_HOME

No Hooks.


String. Homepage location.


_config_wp_home( $url );
URL for the home location.
Default: ''

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

function _config_wp_home( $url = '' ) {
	if ( defined( 'WP_HOME' ) ) {
		return untrailingslashit( WP_HOME );
	return $url;