Uma área de pesquisa sobre o WordPress para devs e autores do tema



_config_wp_siteurl ›

Desde2.2.0
Obsoleton/a
_config_wp_siteurl ( $url = '' )
Acesso:
  • private
Parâmetros:
  • (string) $url URL to set the WordPress site location.
    Required: No
    Padrão: (empty)
Ver:
  • WP_SITEURL
Retorna:
  • (string) The WordPress Site URL.
Definido em:
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.



Fonte

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