In this course, I'll show you how to code your own custom utility functions that can be used anywhere in your theme template files. We'll follow best practice and code our function in a plugin, rather than adding it to the theme directly.
[MUSIC] Hello, and welcome to this Tuts+ Coffee Break course on writing a function in WordPress. My name's Rachel McCollin, and in this course I'm gonna show you how to write your first function in a plug-in. I'm also gonna give you a tour of the functions file within your theme. And I'll show you how to run your function by coding it directly into a theme template file. Watch this course, and find out how to write a function.Back to the top