Instructor: Rachel McCollin
Being able to write your own functions gives you a lot of flexibility and control as a WordPress developer. It can be tempting to put your function code in the theme template file, but that is much less flexible than putting it in your own plugin.
In this Coffee Break Course you'll learn how to write a first simple function that can be used anywhere in your theme template files. Even better, you'll be creating your function in a plugin—best practice for coding WordPress.
This repository contains the completed course project—a simple function that can be used anywhere in your theme templates to retrieve a formatted list of posts.
These are source files for the Envato Tuts+ course: WordPress Coding Basics: Write a Function
Available on Tuts+. Teaching skills to millions worldwide.