A WordPress-centric search engine for devs and theme authors



_config_wp_siteurl ›

Since2.2.0
Deprecatedn/a
_config_wp_siteurl ( $url = '' )
Access:
  • private
Parameters:
  • (string) $url URL to set the WordPress site location.
    Required: No
    Default: (empty)
See:
  • WP_SITEURL
Returns:
  • (string) The WordPress Site URL.
Defined at:
Codex:

Retrieve the WordPress site URL.

If the constant named 'WP_SITEURL' is defined, then the value in that constant will always be returned. This can be used for debugging a site on your localhost while not having to change the database to your URL.



Source

function _config_wp_siteurl( $url = '' ) {
	if ( defined( 'WP_SITEURL' ) )
		return untrailingslashit( WP_SITEURL );
	return $url;
}