Custom Functions
Custom functions provide a quick and easy way to add your own functionality to a theme using plain PHP. In contrast to extensions, custom functions are not meant to be distributed as separate packages. Instead, they live right inside your theme and can be defined in a single statement without the need for any class files or autoloading setup. Once defined, a custom function is used in templates just like any other function.