O'Reilly logo

WordPress Complete - Sixth Edition by Karol Król

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The functions.php file

In short, the functions.php file is meant to set up your theme and provide some helper functions and settings to make usage of the theme easier. Apart from this, the functions file also has many other applications that we're not going to be discussing here, as they are beyond the scope of this book. In essence, functions.php is a kind of file that allows you to perform a very wide scope of modifications. Even though there is a set of standard things that should always be taken care of when dealing with a functions file, no one restricts you from doing virtually anything you wish. For instance, you can create a classic PHP function such as my_function_name() and then call it from within one of your template files (such ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required