Life of a Front-end WordPress Request


#1

Auto-generated thread for https://roots.io/routing-wp-requests/

Have you ever asked yourself what happens when you hit a URL on a WordPress website? Here’s the very simplified version of the story: WordPress environment is loaded (core, plugins, theme) WordPress looks at URL and builds some query arguments based on it Obtained query arguments are used to run a \WP_Query (known as "main…

Read full post: https://roots.io/routing-wp-requests/


#2

What a great article, thanks!

Just a note, all your routing images are broken on Safari atm.


#3

This is a great write up and explanation of the WordPress query parser and front end routes.


#4

Thanks to both of you. And I think images should be fixed now.


#5

Great article, I love the breakdown of of how the WordPress parser works. Thanks man.


#6

Really good stuff! More stuff like this please :slight_smile:


#7

@gmazzap Awesome …
This is one of the best article I read ever. It clear lot of things… Thanks a lot.


#8

So many WP articles are jokey and condescending and often inaccurate. But this is a superb article, beautifully and intelligently written, explaining how WP parses a request and how to tap into that. Thank you very much!