Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

It is referenced in load_template but Wp does nothing with it ?!!! so what's the use ?

1105  function load_template( $_template_file, $require_once = true ) {
1106      global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
1107  
1108      if ( is_array( $wp_query->query_vars ) )
1109          extract( $wp_query->query_vars, EXTR_SKIP );
1110  
1111      if ( $require_once )
1112          require_once( $_template_file );
1113      else
1114          require( $_template_file );
1115  }
share|improve this question

1 Answer 1

up vote 4 down vote accepted

It's a global variable that can be checked by user functions and filters to see whether or not WordPress has already sent headers. It's just there to help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.