WordPress Code Snippets

A fresh mix of code snippets and tutorials

WordPress Load Order

107

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

Notes:

  • 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, WordPress 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

WordPress Themes In Depth


Show Support

Like our new Facebook Page to show support!