wordpress mendapatkan url situs
$url = site_url();
echo $url;
Successful Salmon
$url = site_url();
echo $url;
<?php echo get_site_url(); ?>
Results:
http://www.example.com
global $wp;
echo home_url( $wp->request )