Skip to content

Releases: Veraxus/nv-example-meta-box

NOUVEAU Example Meta Boxes 1.1

Choose a tag to compare

@Veraxus Veraxus released this 10 Jun 05:09
  • Added serialization support to MetaBox::register_setting()
  • Added examples of registering serialized settings to init.php
  • Bug fix: Single checkboxes now save & load correctly

NOUVEAU Example Meta Boxes 1.0

Choose a tag to compare

@Veraxus Veraxus released this 07 Jun 23:55

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.