Life of a Front-end WordPress Request

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/

5 Likes

What a great article, thanks!

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

1 Like

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

1 Like

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

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

2 Likes

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

2 Likes

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

1 Like

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!

1 Like

Wow, this si awesome article! Do somebody cobined this with Laravel routing system, resp. whole Laravel? I imagine it like to have default routing from WP, and when 404 occurs, then init Laravel kernel?