Skip to content

Instantly share code, notes, and snippets.

@NeuronQ
Last active October 5, 2021 00:42
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save NeuronQ/40990f72f51938e527906884f82a3e27 to your computer and use it in GitHub Desktop.
Save NeuronQ/40990f72f51938e527906884f82a3e27 to your computer and use it in GitHub Desktop.
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