Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Split Functions.php

$roots_includes = array(
  '/functions/body-class.php',
  '/functions/connections.php'
);

foreach($roots_includes as $file){
  if(!$filepath = locate_template($file)) {
    trigger_error("Error locating `$file` for inclusion!", E_USER_ERROR);
  }

  require_once $filepath;
}
unset($file, $filepath);
Source by renatello.com #
 
PREVIOUS NEXT
Tagged: #Split
ADD COMMENT
Topic
Name
2+9 =