For anyone who has does any kind of work with WordPress meta boxes, you know that it generally consists of the following steps:
- Define the meta box
- Define the callback functions responsible for displaying the markup
Pretty simple, isn’t it?
Of course if you’re looking to introduce a more advanced functionality into your meta box then you’re likely going to want to introduce stylesheets, JavaScript dependencies, nonce values, and perhaps even tabs to logically separate the options.
Given the fact that I’ve recently looked at some of the various ways to save data in WordPress meta boxes, I thought it might be work sharing one way to help separate the business logic from the presentation logic as it relates to incorporating WordPress meta boxes either in themes or plugins.