Meta Box Generator

Overview

Use this tool to create custom code for WordPress Meta Boxes using add_meta_box() function.

Usage

  • Fill in the user-friendly form.
  • Click the “Update Code” button.
  • Copy the code to your project.
  • Or save it as a snippet and share with the community.

Examples

If you are still learning how to use this tool, check out the following examples:

The class name used in the code.
Unique string placed in front of root elements.
Translation file Text Domain. Optional.
Used in the code as HTML ID attribute.
Meta box title.
The name of the callback function.
Comma separated list of screens or post types.
In which page part to show the meta box.
Priority within the context to show the meta box.
Arguments array passed to the callback function.
Select field type.
Unique ID used in the code.
Text appears before the field.
Text appears below the field.
Text appears within the input.
Default field value.
For select and radio fields. Set value|label, each fields in new line.
Select field type.
Unique ID used in the code.
Text appears before the field.
Text appears below the field.
Text appears within the input.
Default field value.
For select and radio fields. Set value|label, each fields in new line.
Select field type.
Unique ID used in the code.
Text appears before the field.
Text appears below the field.
Text appears within the input.
Default field value.
For select and radio fields. Set value|label, each fields in new line.
Select field type.
Unique ID used in the code.
Text appears before the field.
Text appears below the field.
Text appears within the input.
Default field value.
For select and radio fields. Set value|label, each fields in new line.
Select field type.
Unique ID used in the code.
Text appears before the field.
Text appears below the field.
Text appears within the input.
Default field value.
For select and radio fields. Set value|label, each fields in new line.

You must be logged in and have an active premium membership to use this generator.

Login     Join