Which Function Is Used to Get the Website URL in WordPress?

WordPress uses the wp_get_site_url() function to get the website URL.