(advanced) Parsing URI To Get Post ID?
-
Is there any way to manually figure out which post/page/whatever a particular URI points to?
I know PHP must do this every time someone connects to the server, but I haven’t been able to figure out where or what function to use.
I spent a while digging through the WordPress source and can’t find it. I figured out it must happen somewhere between wp-settings.php (where it starts by fixing IIS url bugs) and wp-query.php (where it sets the flags that say what kind of resource you’re looking at). But where exactly I haven’t been able to find it.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘(advanced) Parsing URI To Get Post ID?’ is closed to new replies.