wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_config_wp_siteurl › WordPress Function

Od2.2.0
Przestarzałyn/a
_config_wp_siteurl ( $url = '' )
Dostęp:
  • private
Parametry:
  • (string) $url URL to set the WordPress site location.
    Wymagane: Nie
    Domyślny: (puste)
Zobacz:
  • WP_SITEURL
Powrót:
  • (string) The WordPress site URL.
Zdefiniowane na:
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.


Źródło

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