Skip to content

Instantly share code, notes, and snippets.

@NeuronQ
Last active October 5, 2021 00:42
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
WP_HOME vs WP_SITEURL
WP_HOME - where home is
homeurl
home_url()
Site Address (URL)
http://example.com
WP_SITEURL - where wordpress is (when having wp in a subdirectory home without the subdir path, like at https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
siteurl
site_url()
WordPress Address (URL)
http://example.com/wordpress
sources:
https://codex.wordpress.org/Editing_wp-config.php#WP_SITEURL
https://wordpress.stackexchange.com/questions/20294/whats-the-difference-between-home-url-and-site-url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment