WordPress zdobądź domenę
// WORDPRESS GET SITE URL:
echo get_site_url(); // echo's http://www.yoursitename.com
gtamborero
// WORDPRESS GET SITE URL:
echo get_site_url(); // echo's http://www.yoursitename.com
$url = site_url();
echo $url;
<?php echo get_site_url(); ?>
Results:
http://www.example.com
global $wp;
echo home_url( $wp->request )