RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Getting the Home URL
home_url() is used for retrieving the current site home url. <?php echo esc_url( home_url( '/' ) ) ); ?> Output http://www.example.com
Site url
Returns the ‘site_url’ option with the appropriate protocol (https://) <?php echo site_url(); ?> Output http://www.example.com
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website