between site_url() and home_url()?

Home Forums WordPress between site_url() and home_url()?

This topic contains 1 reply, has 2 voices, and was last updated by  Sushmita Ghosh 11 months, 1 week ago.

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

    Priyashagoswamy
    Participant

    What’s the difference between site_url() and home_url()?

    #1494

    Sushmita Ghosh
    Keymaster

    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 be logged in to reply to this topic.

Pasham Technology © 2018 Pasham Technologies