A fresh mix of code snippets and tutorials

WordPress Load Order

Micro-post today, on the load order of WordPress..

For reference purposes, the load order of WordPress goes like this:

index.php -> wp-blog-header.php -> wp-load.php -> wp-config.php -> wp-settings.php


  • ABSPATH is defined in wp-load.php, before any database queries
  • After wp-settings.php, WordPress returns to wp-blog-header.php
  • After revisiting wp-blog-header.php, WP runs template-loader.php
  • In the Admin area, WordPress load-order skips wp-blog-header.php, bypassing the blog header and template loader

Learn more

Digging Into WordPressWordPress Themes In DepthWizard’s SQL Recipes for WordPress