CMB2

CMB2是一个开发人员的工具包,用于构建WordPress的元文件,自定义字段和表单,这会让您大吃一惊。(CMB2 is a developer's toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind.)

Github星跟蹤圖

CMB2

Gitter
Travis
Scrutinizer Code Quality
Scrutinizer Coverage
Project Stats

CMB2

Contributors: jtsternberg, webdevstudios, zao, humanmade
Homepage: https://cmb2.io
Tags: metaboxes, forms, fields, options, settings
Requires at least: 3.8.0
Tested up to: 5.3.2
Stable tag: 2.7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Wordpress plugin
Wordpress
Wordpress rating

Complete contributors list found here: github.com/CMB2/CMB2/graphs/contributors

Description

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.

Download plugin on wordpress.org

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.

If you are coming from the original "Custom Metaboxes and Fields for WordPress" plugin, please read this post for the CMB2 background story.

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

Other Helpful Resources

Installation

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 CMB2 directory inside of your theme or plugin.
  2. Copy (and rename if desired) example-functions.php into a folder above the CMB2 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 (CMB2 directory should be left unedited in order to easily update the library).
  4. Profit.

View CHANGELOG

Known Issues

  • Not all fields work well in a repeatable group.

主要指標

概覽
名稱與所有者CMB2/CMB2
主編程語言PHP
編程語言JavaScript (語言數: 6)
平台BSD, Linux, Mac, Solaris, Windows
許可證GNU General Public License v3.0
所有者活动
創建於2014-08-20 16:49:33
推送於2025-04-11 12:16:27
最后一次提交2024-04-02 15:30:07
發布數52
最新版本名稱v2.11.0 (發布於 2024-04-02 15:30:11)
第一版名稱v0.8 (發布於 2012-01-19 18:49:12)
用户参与
星數3k
關注者數142
派生數572
提交數2.8k
已啟用問題?
問題數1113
打開的問題數243
拉請求數219
打開的拉請求數31
關閉的拉請求數161
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?