Basic usage:

Result:

It’s empty, but do not worry, we’ll add some fields right now.

Result:

Tip:

You can see a complete example inside the folder¬†“../xbox/example/”

../xbox/example/admin-page.php

../xbox/example/metabox.php

../xbox/example/advanced-import.php

To hide all examples add this code to your project.

 

 

Advanced usage, with available options:

Result:

 

 To make it more interesting we will add some tabs:

Result:

Get saved values:

See how get field values.

Note:

Always use ‘xbox_init’ hook to create your meta boxes.

Documentation Menu