Slide 1

Slide 1 text

From URL to Query Erick Hitter @ethitter https://ethitter.com/

Slide 2

Slide 2 text

STOP 1 index.php

Slide 3

Slide 3 text

index.php define(  'WP_USE_THEMES',  true  );   ! ! require_once(  …  '/wp-­‐blog-­‐header.php'  );

Slide 4

Slide 4 text

STOP 2 wp-blog-header.php

Slide 5

Slide 5 text

wp-blog-header.php require_once(  …  '/wp-­‐load.php'  );   ! wp();   ! require_once(  …  '/template-­‐loader.php'  );

Slide 6

Slide 6 text

wp-blog-header.php Loads the rest of WordPress ! Finds what we’re looking for ! Displays it

Slide 7

Slide 7 text

STOP 3 wp-load.php

Slide 8

Slide 8 text

wp-load.php Checks for valid wp-­‐config.php 
 or
 Launches the installer

Slide 9

Slide 9 text

STOP 4 wp-settings.php

Slide 10

Slide 10 text

wp-settings.php Loads WordPress ! Fires many important actions ! Authenticates the user

Slide 11

Slide 11 text

STOP 5 wp()

Slide 12

Slide 12 text

wp() Confirms the user ! Determines the query arguments ! Queries the database

Slide 13

Slide 13 text

STOP 6 template-loader.php

Slide 14

Slide 14 text

template-loader.php Loads appropriate theme file according to the Template Hierarchy

Slide 15

Slide 15 text

Thanks Erick Hitter @ethitter https://ethitter.com/ https://eth.pw/wcsf14