Skip to content

Instantly share code, notes, and snippets.

@fumikito
Created April 28, 2011 16:28
Show Gist options
  • Save fumikito/946696 to your computer and use it in GitHub Desktop.
Save fumikito/946696 to your computer and use it in GitHub Desktop.
WordPressのテーマ内functions.phpが長くなりがちなので、functionsフォルダにファイルを分割して置くとき書いとくと便利
/*
* functionsフォルダにあるファイルをすべて読み込む
*/
foreach(glob(TEMPLATEPATH."/functions/*.php") as $file){
require_once $file;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment