site_url() and home_url()

Support Forums Programming and Development WordPress site_url() and home_url()

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Jeanne 6 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1190

    john kennedy
    Participant

    What is the difference between site_url() and home_url()?

    #1201

    Jeanne
    Keymaster

    HI,

    The site_url() will always be the location where you can reach the site by tacking on /wp-admin on the end, while
    home_url() would not reliably be this location. The home_url() would be where you have set your homepage by setting
    General > Settings “Site Address (URL)” field.

Viewing 2 posts - 1 through 2 (of 2 total)

You must Login/Register to reply to this topic.