wpseek.com
A WordPress-centric search engine for devs and theme authors



_config_wp_home › WordPress Function

Since2.2.0
Deprecatedn/a
_config_wp_home ( $url = '' )
Access:
  • private
Parameters:
  • (string) $url URL for the home location.
    Required: No
    Default: (empty)
See:
  • WP_HOME
Returns:
  • (string) Homepage location.
Defined at:
Codex:

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.


Source

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