Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use WP_HOME instead.
_config_wp_home() WordPress Function
The _config_wp_home() function is used to configure the WordPress home page. This function takes two parameters: the first is the path to the WordPress home directory, and the second is the path to the WordPress configuration file. The function will then read the WordPress configuration file and set the WordPress home directory to the specified path.
_config_wp_home( string $url = '' ) #
Retrieve the WordPress home page URL.
Description
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 also
Parameters
- $url
(string)(Optional)URL for the home location.
Default value: ''
Return
(string) Homepage location.
Source
File: wp-includes/functions.php
function _config_wp_home( $url = '' ) { if ( defined( 'WP_HOME' ) ) { return untrailingslashit( WP_HOME ); } return $url; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |