Today the latest version of the Meta Box plugin – 4.8.7 – is released. This version has a big refactor of the code that reduces the complexity in the code architecture and thanks to that the plugin is simpler but still very powerful.
Refactoring the plugin
In order to measure the complexity of the plugin, we use the script PHPMetrics which is the best script that analyzes the code and offers very useful statistics. We also compare it with other popular plugins such as Advanced Custom Fields and CMB2 and the result is quite good. For more details, please read the post on my blog.
Supports all HTML 5 input types
array( 'id' => 'field_id', 'type' => 'tel', // New HTML 5 input type 'name' => 'Telephone', )
- Use 1 single localization file for jQuery date picker for simplicity
- Add support for custom marker for map field (param
limitoption for media fields in
rwmb_metafunction when retrieving meta value.
rwmb_option_labelfilter for choice fields (user, post, taxonomy) so users can choose which object field is used as label
WP_User_Queryfor user field which supports more options for querying
- Optimize code for oembed, also use
esc_html__for better security
- Compatibility with Meta Box Geolocation
- Fix first option is auto selected in
- Fix clone issue for color in Meta Box Group extension.
- Fix clone issue for image advanced in Meta Box Group extension.
- Fix not parsing
$argsto array in helper functions.