wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_config_wp_siteurl › WordPress Function

Depuis2.2.0
Dépréciéen/a
› _config_wp_siteurl ( $url = '' )
Accès:
  • private
Paramètres:
  • (string) $url URL to set the WordPress site location.
    Requis: Non
    Défaut: (vide)
Voir:
  • WP_SITEURL
Retourne:
  • (string) The WordPress site URL.
Défini(e) dans:
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;
}