# CMB2
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/WebDevStudios/CMB2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Travis](http://img.shields.io/travis/WebDevStudios/CMB2.svg?style=flat)](https://travis-ci.org/WebDevStudios/CMB2)
[![Scrutinizer Code Quality](http://img.shields.io/scrutinizer/g/WebDevStudios/CMB2.svg?style=flat)](https://scrutinizer-ci.com/g/WebDevStudios/CMB2/?branch=trunk)
[![Scrutinizer Coverage](https://scrutinizer-ci.com/g/WebDevStudios/CMB2/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/WebDevStudios/CMB2/?branch=trunk)
[![Project Stats](https://www.openhub.net/p/CMB2/widgets/project_thin_badge.gif)](https://www.openhub.net/p/CMB2)
**Contributors:** [webdevstudios](https://github.com/webdevstudios), [jtsternberg](https://github.com/jtsternberg), [gregrickaby](https://github.com/gregrickaby), [tw2113](https://github.com/tw2113), [patrickgarman](https://github.com/pmgarman)
**Donate link:** [http://webdevstudios.com](http://webdevstudios.com)
**Tags:** metaboxes, forms, fields, options, settings
**Requires at least:** 3.8.0
**Tested up to:** 4.2.1
**Stable tag:** 2.0.6
**License:** GPLv2 or later
**License URI:** [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
[![Wordpress plugin](http://img.shields.io/wordpress/plugin/v/cmb2.svg?style=flat)](https://wordpress.org/plugins/cmb2/)
[![Wordpress](http://img.shields.io/wordpress/plugin/dt/cmb2.svg?style=flat)](https://wordpress.org/plugins/cmb2/)
[![Wordpress rating](http://img.shields.io/wordpress/plugin/r/cmb2.svg?style=flat)](https://wordpress.org/plugins/cmb2/)
Complete contributors list found here: [github.com/WebDevStudios/CMB2/graphs/contributors](https://github.com/WebDevStudios/CMB2/graphs/contributors)
## Description
CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
**[Plugin available on wordpress.org](http://wordpress.org/plugins/cmb2/)**
CMB2 is a complete rewrite of [Custom Metaboxes and Fields for WordPress](https://github.com/WebDevStudios/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](https://github.com/WebDevStudios/CMB2/wiki/Basic-Usage).
You can see a list of available field types [here](https://github.com/WebDevStudios/CMB2/wiki/Field-Types#types).
## Features:
* Create metaboxes to be used on post edit screens.
* [Create forms to be used on an options pages](https://github.com/WebDevStudios/CMB2/wiki/Using-CMB-to-create-an-Admin-Theme-Options-Page).
* Create forms to handle user meta and display them on user profile add/edit pages.
* [Flexible API that allows you to use CMB forms almost anywhere, even on the front-end](https://github.com/WebDevStudios/CMB2/wiki/Bringing-Metaboxes-to-the-Front-end).
* [Several field types are included](https://github.com/WebDevStudios/CMB2/wiki/Field-Types).
* [Custom API hook that allows you to create your own field types](https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types).
* There are numerous hooks and filters, allowing you to modify many aspects of the library (without editing it directly).
* Repeatable fields for most field types are supported, as well as repeatable field groups.
* CMB2 is safe to bundle with any project. It will only load the newest version in the system.
## Translation
* Thanks to many in the CMB2 community and to our friends at [wp-translations.org](http://wp-translations.org/project/cmb2/), we have a good start on several translations for CMB2. Please feel free to [work with wp-translations.org](http://wp-translations.org/project/cmb2/) to provide even more!
## 3rd Party Resources
#### Custom Field Types
* [CMB2 Field Type: CMB Attached Posts Field](https://github.com/coreymcollins/cmb-attached-posts) from [coreymcollins](https://github.com/coreymcollins): `custom_attached_posts`, for attaching posts to a page.
* [CMB2 Field Type: CMB2 Post Search field](https://github.com/WebDevStudios/CMB2-Post-Search-field): `post_search_text` adds a post-search dialog for searching/attaching other post IDs.
* [CMB2 Field Type: CMB2 RGBa Colorpicker](https://github.com/JayWood/CMB2_RGBa_Picker) from [JayWood](https://github.com/JayWood): `rgba_colorpicker ` adds a color picker that supports RGBa, (RGB with transparency (alpha) value).
* [CMB2 Field Type: Google Maps](https://github.com/mustardBees/cmb_field_map) from [mustardBees](https://github.com/mustardBees): Custom field type for Google Maps.
> The `pw_map` field stores the latitude/longitude values which you can then use to display a map in your theme.
* [CMB2 Field Type: Select2](https://github.com/mustardBees/cmb-field-select2) from [mustardBees](https://github.com/mustardBees): Custom field types which use the [Select2](http://ivaynberg.github.io/select2/) script:
> 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
* [CMB2 Field Type: Gallery](https://github.com/mustardBees/cmb-field-gallery) from [mustardBees](https://github.com/mustardBees): Adds a WordPress gallery field.
* [CMB Field Type: Slider](https://github.com/qmatt/cmb2-field-slider) from [mattkrupnik](https://github.com/mattkrupnik/): Adds a jQuery UI Slider field.
#### Other Helpful Resources
* [Taxonomy_MetaData](https://github.com/jtsternberg/Taxonomy_MetaData#to-use-taxonomy_metadata-with-custom-metaboxes-and-fields): WordPress Helper Class for saving pseudo-metadata for taxonomy terms. Includes an extended class for using CMB to generate the actual form fields.
* [CMB2 Taxonomy](https://github.com/jcchavezs/cmb2-taxonomy) from [jcchavezs](https://github.com/jcchavezs/): Similar to Taxonomy_MetaData, but uses a custom table for taxonomy term meta storage.
* [WordPress Shortcode Button](https://github.com/jtsternberg/Shortcode_Button): Uses CMB2 fields to generate fields for shortcode input modals.
## Contribution
All contributions welcome. If you would like to submit a pull request, please check out the [trunk branch](https://github.com/WebDevStudios/CMB2/tree/trunk) and pull request against it. Please read the [CONTRIBUTING](https://github.com/WebDevStudios/CMB2/blob/master/CONTRIBUTING.md) doc for more details.
A complete list of all our awesome contributors found here: [github.com/WebDevStudios/CMB2/graphs/contributors](https://github.com/WebDevStudios/CMB2/graphs/contributors)
## Links
* [Github project page](https://github.com/webdevstudios/CMB2)
* [Documentation (GitHub wiki)](https://github.com/webdevstudios/CMB2/wiki)
## 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.
2. Copy (and rename if desired) `example-functions.php` into to your theme or plugin's directory.
2. Edit to only include the fields you need and rename the functions.
4. 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.
2. 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.
## Most Recent Changes - 2.0.6
#### Enhancements
* New metabox/form parameter, `show_on_cb`, allows you to conditionally display a cmb metabox/form via a callback. The `$cmb` object gets passed as a parameter t
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件v2.1.0.zip
共119个文件
php:55个
png:16个
js:10个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 95 浏览量
2022-04-11
12:16:48
上传
评论
收藏 485KB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件v2.1.0 Woocommerce Click And Pick ( Local Pickup ) Woocommerce Click并选择(本地提货)" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件v2.1.0.zip (119个子文件)
coverage.clover 2.18MB
cmb2.css 95KB
cmb2.min.css 66KB
jquery.datetimepicker.css 15KB
custom.css 1019B
style.css 155B
admin.css 31B
phpunit.xml.dist 427B
.gitignore 1006B
lodash.js 112KB
jquery.datetimepicker.js 71KB
gmaps.js 57KB
jquery-ui-timepicker-addon.min.js 39KB
cmb2.js 27KB
cmb2.min.js 18KB
Gruntfile.js 5KB
script.js 3KB
custom.js 1KB
admin.js 665B
package.json 1KB
Dockunit.json 1KB
composer.json 866B
cmb2.css.map 24KB
CHANGELOG.md 30KB
readme.md 11KB
readme.md 4KB
readme.md 3KB
CONTRIBUTING.md 3KB
README.md 2KB
click-and-pick-ar.mo 1KB
click-and-pick-en.mo 499B
test-cmb-types.php 39KB
CPT.php 34KB
CMB2_Types.php 31KB
CMB2.php 28KB
CMB2_Field.php 27KB
test-cmb-core.php 19KB
example-functions.php 19KB
CMB2_hookup.php 13KB
test-cmb-field.php 12KB
CMB2_Sanitize.php 11KB
branch.php 10KB
helper-functions.php 9KB
click.n.pick.shipping.class.php 8KB
html.php 8KB
CMB2_Ajax.php 6KB
helper.class.php 6KB
CMB2_Utils.php 5KB
CMB2_Options.php 5KB
click-and-pick-plugin.php 5KB
init.php 5KB
CMB2_Show_Filters.php 4KB
checkout.class.php 3KB
cmb-tests-base.php 3KB
cmb-field-map.php 3KB
email.class.php 2KB
CMB2_Boxes.php 1KB
bootstrap.php 1KB
bootstrap.php 1KB
order-details-html.php 1KB
test-cmb-utils.php 984B
thankyou.class.php 823B
uninstall.php 162B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 26B
index.php 0B
index.php 0B
index.php 0B
index.php 0B
index.php 0B
index.php 0B
index.php 0B
index.php 0B
index.php 0B
ui-icons_888888_256x240.png 5KB
ui-icons_222222_256x240.png 4KB
ui-icons_454545_256x240.png 4KB
ui-icons_cd0a0a_256x240.png 4KB
ui-icons_2e83ff_256x240.png 4KB
purple_marker_sprite.png 2KB
yellow_marker.png 1KB
ico-delete.png 715B
ui-bg_flat_0_aaaaaa_40x100.png 180B
ui-bg_flat_75_ffffff_40x100.png 178B
ui-bg_glass_55_fbf9ee_1x400.png 120B
ui-bg_glass_95_fef1ec_1x400.png 119B
ui-bg_glass_75_dadada_1x400.png 111B
ui-bg_glass_75_e6e6e6_1x400.png 110B
共 119 条
- 1
- 2
资源评论
Lee达森
- 粉丝: 966
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功