Timeline for What php files handles routing?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 14, 2014 at 5:31 | comment | added | Milo |
index.php . open that file and follow the includes and you'll see the whole process.
|
|
Dec 14, 2014 at 5:30 | comment | added | william007 | Thanks Milo, but before following template hierarchy, a very first php file should be called by the httpserver right? I am interested to know what it is. | |
Dec 14, 2014 at 5:26 | comment | added | Milo | it's the same process for all requests. URLs are matched against rewrite rules, which are patterns that translate parts of the request into query vars, like year, month, day, postname, pagename, taxonomy term, etc.. only the query sent to the database differs for each request, and whatever theme template files go with each type of request according to the template hierarchy. | |
Dec 14, 2014 at 5:17 | comment | added | william007 | Thanks! I am interested to learn about how things work, what about mywordpress.com/2014/10/18... this one I am quite puzzling and very interested to know what file does it call first that kicks off the process? | |
Dec 14, 2014 at 5:11 | comment | added | Milo |
index.php requires wp-blog-header.php , which requires wp-load.php then calls wp() function, which kicks off the process. are you just trying to learn how things work, or is there a more specific goal in this question?
|
|
Dec 14, 2014 at 4:56 | comment | added | william007 | Thanks, but when is the class-wp.php get called? I am interested in what is the first file get called that triggered class-wp.php to handle the path..say calling mywordpress.com, is it the index.php get call first? | |
Dec 14, 2014 at 4:27 | history | answered | Milo | CC BY-SA 3.0 |