<?php 

// Include misc function files
foreach(glob(get_stylesheet_directory() . "/functions/*.php") as $file) {
    require $file;
}

// Include function sub-modules
foreach ( glob( get_stylesheet_directory() . "/functions/**/[^_]*.php", GLOB_NOSORT ) as $file ) {
    // if ($file[0] !== '_') { require $file; } // Include file if it doesn't start with _
    // echo $file."<br>";
    require $file;
}