_config_wp_home() – Retrieve the WordPress home page URL.
You appear to be a bot. Output may be restricted
Description
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.
Usage
$string = _config_wp_home( $url );
Parameters
- $url
- ( string ) optional – URL for the home location.
Returns
string Homepage location.
Source
File name: wordpress/wp-includes/functions.php
Lines:
1 to 6 of 6
function _config_wp_home( $url = '' ) { if ( defined( 'WP_HOME' ) ) { return untrailingslashit( WP_HOME ); } return $url; }