get_bloginfo or get_option
-
Can someone let me know the difference between the following two snippets of code, and which one I should be using and why? I know that ‘wpurl’ has replaced the deprecated ‘siteurl’, but these two appear (According to the Codex) to do exactly the same thing.
$wp_address = get_option('wpurl');
and this one
$wp_address = get_bloginfo('wpurl');
Cheers
Rich
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_bloginfo or get_option’ is closed to new replies.