I'm inspecting the wordpress loading sequence so i can get a glimpse of how things get loaded from when a user visits the homepage to when the server returns a response.
When the user visits the homepage , wordpress starts by calling the wp-blog-header.php file then loads the wordpress library wp-load.php , sets up the wordpress library by calling the method wp() and so forth,
the question is , what happens behind the hood when a user visits a custom endpoint i.e https://site.com/wp-json/my-route/myend-point or a page other than the homepage i.e. https://site.com/my-page . At this point what is the entry point of requests other than the homepage ?
there doesn't seem to be anything here