Create a plugin | Add a featured image to a post
How to create a plugin and add a featured image to a post. Creating a plugin can seem intimidating but with this guide, you will be creating a plugin in no time. We will code a plugin that you can put to use in just a few easy steps.
Locate your “plugins” folder. Inside the “plugins” folder, create a folder labelled “add-featured-image”
Create 2 files inside the “add-featured-image” folder as follows;
Add the following code to the “add-featured-image.php” file and the code below this window to the “style.css” file;
Activate your plugin. That’s it, your done.