WordPress home_url() Site url


Example

Returns the ‘site_url’ option with the appropriate protocol (https://)

<?php echo site_url(); ?>

Output

http://www.example.com