Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Function Reference/site url

Question to parameter $scheme: the function wp_register calls site_url with $scheme = 'register', what happens then ?

site_url, get_site_url v get_bloginfo('siteurl')

Okay, this is obvious to those who have been working with it, but for those who are just dropping in, let's consider the case where the WordPress core files are installed in a subdirectory (say "blog") of the site http://example.com

These agree with each other and with the setting of "WordPress Address" in General Settings.

But this is different and retrieves the value of "Site Address (URL)" in General Settings

It may be best to avoid 'siteurl/site_url' and use

Converting2wp 03:06, 27 December 2011 (UTC)