[theme-reviewers] How the files included in the theme functions.php file are loaded?
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
Should i use some conditional tags while loading the files?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers