Uses
Uses | Description |
---|---|
wp-includes/formatting.php: untrailingslashit() | Removes trailing forward slashes and backslashes if they exist. |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use WP_SITEURL instead.
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.
(string) (Optional) URL to set the WordPress site location.
Default value: ''
(string) The WordPress Site URL.
File: wp-includes/functions.php
function _config_wp_siteurl( $url = '' ) { if ( defined( 'WP_SITEURL' ) ) { return untrailingslashit( WP_SITEURL ); } return $url; }
Version | Description |
---|---|
2.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_config_wp_siteurl