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



_config_wp_siteurl › WordPress Function

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:

Retrieves 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;
}