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



_config_wp_siteurl › WordPress Function

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:

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.


Fonte

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