This series is focused on tips and strategies that we can employ to write WordPress plugins – specifically those that employ meta boxes – that are logically organized and easy to maintain.In the first two posts of the series, we laid out the initial directory structure, setup the code for the plugin, and discussed what the plugin will do. In the last post, we began to create the meta box and introduce the tabs that will contain each of the features that we’re going to work.This article will continue building on what we’ve done thus far. We’re going to be introducing content in each of the tabs, implementing functionality that allows us to toggle said content, and we’ll begin introducing the fields for content on the first tab.Tab TemplatesBefore we go about implementing the tabs that will toggle between all of the able options, we need to introduce partials, templates, views, or whatever you’d like to call them so that we have files specifically for handling our information.First, navigate to the admin/views/partials directory and add the following files (all of which can be empty, for now though I’ve provided some basic code below):drafts.phpresources.phppublished.phpEach of these files will correspond to one of the tabs in the meta boxes interface.
Continue reading here:
Creating Maintainable WordPress Meta Boxes: The Front-End