functions.php is a specially named PHP file that can be located inside any WordPress theme. WordPress knows to execute the code in functions.php during its normal PHP processing.
functions.php's job is to add custom functionality to the theme and site. It is composed of PHP functions—small bits of PHP code that add or change functionality across the site.
functions.php is the "brain" of a WordPress theme: it's where we dictate all kinds of presentational functionality—PHP functions that control how things display, rather than the site's underlying data—for the theme.
In this chapter,...