_config_wp_home()
Retrieves 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.
Internal function — this function is designed to be used by the kernel itself. It is 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.
Default: ''
Notes
- See: WP_HOME
Changelog
Since 2.2.0 | Introduced. |
_config_wp_home() config wp home code WP 6.5.2
function _config_wp_home( $url = '' ) { if ( defined( 'WP_HOME' ) ) { return untrailingslashit( WP_HOME ); } return $url; }