Linux 软件免费装
Banner图

CMB2

开发者 jtsternberg
webdevstudios
tw2113
更新时间 2026年10月9日 10:25
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

forms fields options settings metaboxes

下载

2.13.1 2.12.0 2.13.0 2.13.2 2.13.3

详情介绍:

CMB2 is a developer's toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind. Easily manage meta for posts, terms, users, comments, or create custom option pages. CMB2 is a complete rewrite of Custom Metaboxes and Fields for WordPress. To get started, please follow the examples in the included example-functions.php file and have a look at the basic usage instructions. You can see a list of available field types here. Contribution Development occurs on Github, and all contributions welcome. Please read the CONTRIBUTING doc for more details. A complete list of all our awesome contributors found here: github.com/CMB2/CMB2/graphs/contributors Features: Translation If you are looking to provide language translation files, Please do so via WordPress Plugin Translations. 文档 3rd Party Resources Custom Field Types
  1. The pw_select field acts much like the default select field. However, it adds typeahead-style search allowing you to quickly make a selection from a large list
  2. The pw_multiselect field allows you to select multiple values with typeahead-style search. The values can be dragged and dropped to reorder
Other Helpful Resources Links Known Issues

安装:

If installing the plugin from wordpress.org:
  1. Upload the entire /CMB2 directory to the /wp-content/plugins/ directory.
  2. Activate CMB2 through the 'Plugins' menu in WordPress.
  3. Copy (and rename if desired) example-functions.php into to your theme or plugin's directory.
  4. Edit to only include the fields you need and rename the functions.
  5. Profit.
If including the library in your plugin or theme:
  1. Place the CMB directory inside of your theme or plugin.
  2. Copy (and rename if desired) example-functions.php into a folder above the CMB directory OR copy the entirety of its contents to your theme's functions.php file.
  3. Edit to only include the fields you need and rename the functions (CMB directory should be left unedited in order to easily update the library).
  4. Profit.

升级注意事项:

2.13.4 Security release: escapes the oEmbed field's object ID and object type attributes, which could be abused through a crafted link on admin user and term screens. Update recommended. 2.13.3 Security update: CMB2 REST endpoints now reject requests that target an object type or option key a box is not registered for. Update recommended for all sites.

更新日志:

2.13.4 Enhancements Bug Fixes 2.13.3 Bug Fixes 2.13.2 Bug Fixes 2.13.1 Enhancements Bug Fixes 2.13.0 Enhancements Bug Fixes 2.12.0 Enhancements Bug Fixes 2.11.0 Enhancements Bug Fixes 2.10.1 Bug Fixes 2.10.0 Enhancements Bug Fixes 2.9.0 Enhancements Bug Fixes 2.8.0 Enhancements Bug Fixes 2.7.0 Enhancements Bug Fixes 2.6.0 Bug Fixes Enhancements 2.5.1 Bug Fixes 2.5.0 Enhancements Bug Fixes 2.4.2 Bug Fixes 2.4.1 Bug Fixes 2.4.0 Enhancements php 'attributes' => array( 'data-codeeditor' => json_encode( array( 'codemirror' => array( 'mode' => 'css', ), ) ), ), * Improve/add comment info banners at top of CMB2 CSS files. * Added resetBoxes/resetBox Javascript methods for resetting CMB2 box forms. * Improved styles for fields in the new-term form. * New CMB2_Boxes methods for filtering instances of CMB2, CMB2_Boxes::get_by( $property, $optional_compare ) and CMB2_Boxes::filter_by( $property, $to_ignore = null ). Bug Fixes 2.3.0 Enhancements Bug Fixes Older versions For the changelog of versions prior to 2.3.0, see CHANGELOG.md.