From the course: WordPress: Action and Filter Hooks

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Scaffold a simple plugin

Scaffold a simple plugin - WordPress Tutorial

From the course: WordPress: Action and Filter Hooks

Start my 1-month free trial

Scaffold a simple plugin

- [Carrie] In this lesson, we're going to get started by setting up our basic file and folder structure for the plugin. So here I've already got my local WordPress install pulled up, and I'm going to create a new folder in my plugins folder, new folder. I'm going to call it Single Post CTA. And within that folder, I'm going to create a new file. And I'm also going to call that single-post-cta.php. Save that. And let me go ahead and clear that out. Okay, so we're going to open up with a basic header block, and forgive me for copy pasting in there, but I figured you don't want to watch me type all of this very slowly. So, we'll start with our plugin name, which is Single Post CTA. Then we've got the plugin URI. I'll be uploading this plugin to GitHub at the end of this course, where you are welcome to download it, fork it or do with it as you will. Next, we have a description of what this plugin does. It adds a sidebar or…

Contents