[theme-reviewers] How the files included in the theme functions.phpfile are loaded?

Philip M. Hofer (Frumph) philip at frumph.net
Sat Feb 26 23:43:55 UTC 2011


if (is_admin()) {
// wp-admin only loaded code.
}
  ----- Original Message ----- 
  From: Satish Gandham 
  To: theme-reviewers at lists.wordpress.org 
  Sent: Saturday, February 26, 2011 10:39 AM
  Subject: [theme-reviewers] How the files included in the theme functions.phpfile are loaded?


  How are the files included in the themes functions.php file loaded.

  Like, some of the files are required only for the backend (admin), so are those files called for when generating the page for regular visitors?


  For example, I have this code


  //Required to show the page navigation.
  require_once ( INCLUDES. '/wp-pagenavi.php' );      // Add's wp page nav support, script by Lester Chann
     
  // Required only for the backend.
  require_once (ADMIN. '/admin-header.php');         //Header of options page
  require_once (ADMIN. '/admin-core.php');           // Work horse for SWIFT admin options.



  Should i use some conditional tags while loading the files?



  Satish Gandham



------------------------------------------------------------------------------


  _______________________________________________
  theme-reviewers mailing list
  theme-reviewers at lists.wordpress.org
  http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110226/e201fec8/attachment-0001.htm>


More information about the theme-reviewers mailing list