If you’re not already familiar, Custom Metaboxes and Fields for WordPress is a WordPress drop-in plugin that will “create metaboxes with custom fields that will blow your mind.” The Custom Metaboxes and Fields (CMB) library is a frequently used tool at WebDev, so I approached Jared Atchison about some possible improvements. Jared gave me commit access and I began maintaining the project, introducing new features and merging changes from the community.
On Wednesday, November 27th, we rolled out version 1.0.0 which contains several big-bang features that are sure to make your WordPress development experience that much easier. Several WordPress community members, and a few WDS members (Brian Messenlehner, Michael Beckwith, Corey Collins, and myself) had a hand in this release.
Here is a list from the 1.0.0 changelog:
select_timezonetype, a standalone time zone select dropdown. The time zone select can be used with standalone
text_datetime_timestampif desired. Props @dessibelle
text_urltype, a basic url field. Props @dessibelle
text_emailtype, a basic email field. Props @dessibelle
- Added ability to display metabox fields in frontend. Default is true, but can be overriden using the
cmb_allow_frontendfilter. If set to true, an entire metabox form can be output with a new function:
cmb_metabox_form( $meta_box, $object_id, $echo );
- Added hook
cmb_after_tableafter all metabox output. Props @wpsmith
file_listnow works like a repeatable field. Add as many files as you want. Props @coreymcollins
text_moneyfields now all have the option to be repeatable. Props @jtsternberg
- Custom metaboxes can now be added for user meta. Add them on the user add/edit screen, or in a custom user profile edit page on the front-end. Props @tw2113, @jtsternberg
We hope you’re as excited for the possibilities with 1.0.0 as we are and we are already working on updates for version 1.0.1! If you would like to see a new feature or improvement feel free to contribute and submit patches on github. Also, the wiki page needs to be updated so if documentation is your thing, please feel free to jump in and update some docs!