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

Satish Gandham satish.iitg at gmail.com
Sat Feb 26 18:39:52 UTC 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110227/25469627/attachment.htm>


More information about the theme-reviewers mailing list