What is difference between get_bloginfo(‘url’) and get_site_url()?

get_bloginfo(‘url’) calls home_url() calls get_home_url() reads option home get_bloginfo(‘wpurl’) calls site_url() calls get_site_url() reads option siteurl get_bloginfo(‘siteurl’) and get_bloginfo(‘home’) are deprecated arguments and return get_bloginfo(‘url’) (siteurl argument is documented wrong in Codex as equal to wpurl, it’s not in current code) The difference is that these two function chain to different options, which are typically … Read more

When moving a WP site, why does wp-admin redirect to old site?

If this is a single WordPress install, there are a couple database entries with your old domain. Specifically, siteurl and home within wp_options. That said, if the dev URL is temporary, you can also set the following two constants in wp-config.php: define(‘WP_HOME’, ‘http://’ . $_SERVER[‘SERVER_NAME’]); define(‘WP_SITEURL’, WP_HOME . “https://wordpress.stackexchange.com/”); Provided that WordPress is installed in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)