Skip to content

NOUVEAU Example Meta Boxes 1.0

Choose a tag to compare

@Veraxus Veraxus released this 07 Jun 23:55
· 3 commits to master since this release

Quickly create new custom admin meta boxes with very little work and unlimited flexibility. A new "magic" API allows you build meta boxes in just two steps…

  1. Register your meta boxes using add_meta_box() and use array( '\NV\Plugins\MetaBox', 'build_metabox' ) as your callback.
  2. Register your settings with the new MetaBox::register_setting() method.

That is literally all there is to it. Form fields are created for you and the values are automatically sanitized and saved. Want more control? You can create your own custom metabox templates and use as much or as little of this plugins magic as you like. CSS and Javascript files are already enqueued for you too, so you can customize even further if you are so inclined with no extra grunt work in setting it up.