wp-blog-header.php questions…
-
I just have a few questions…and many more in the future! So expect to be seeing a lot of me!
<?php /** * Loads the WordPress environment and template. * * @package WordPress */ if ( !isset($wp_did_header) ) { $wp_did_header = true; require_once( dirname(__FILE__) . '/wp-load.php' ); wp(); require_once( ABSPATH . WPINC . '/template-loader.php' ); } ?>1. isset is to check to see if a variable is set. The $wp_did_header is set to true but what is the actual variable?
2. The first require_once calls for the “wp-load.php”, but I’m confused about “dirname(_FILE_)” (mainly the FILE part). I can understand the dirname as directory name but I don’t understand _FILE_; Isn’t it supposed to be a variable or a string? Why can it get away without using a “$”?
3. wp(); is just sitting there and it doesn’t look like it does anything. What does it actually do and how does it work? Is it calling a function without using include or require?
The topic ‘wp-blog-header.php questions…’ is closed to new replies.