Generally bloggers tend to write custom php functions in the theme function.php file. I was also no exception and used to practicing it until I lost my custom functions (which had been saved in the theme function file) on account of forgetting to copy all functions...