What is functions.php file in WordPress?
The WordPress functions.php file behaves like a WordPress Plugin, You cam use this file to add required and additional features and functionality to a WordPress site.
You can use functions.php WordPress file to call functions, both PHP and built-in WordPress, and to define your own functions.
A functions.php file
- Is stored with each Theme in the Theme’s subdirectory in wp-content/themes.
- Executes only when in the currently activated theme’s directory.
- Applies only to that theme. If the Theme is changed, the functionality is lost.
- Can have numerous blocks of code used for many different purposes.
Every WordPres theme contains a Functions.php file. To edit functions.php file, log in to your WordPress dashboard. go to Appearance > Editor. You will see a list of al theme files.
Select functions.php file to edit it. Add your new function and save changes. That’s all
Further Reading
You can find a lot of different functions here http://www.wpfunction.me/