Skip to content

Category: Coding

How to add custom meta box to wordpress admin interface

When building a plugin sometimes is handy to add custom information and/or forms into a wordpress post admin screen, the wordpress api allows you to program this behavior using the add_meta_box function.

As an example, i will take you through the exercise of adding a functionality of adding a custom metabox for a recipe post type, that will allow the user to define the cooking time for the recipe.

1. The expected result