CMB2
PluginCMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
- 0 estrellas
- 0 seguidores
- 0 descargas
- GPL-2.0-or-later
-
Bug Fixes Notas de la versión
-
Enhancements Notas de la versión
Mostrar 51 versiones aún no disponibles
Lanzamientos que figuran en el registro de cambios del proveedor o en WordPress.org y que el repositorio aún no tiene.
-
2.13.3 Aún no disponible
-
2.10.0 Aún no disponible
Enhancements
-
2.9.0 Aún no disponible
Enhancements
-
2.8.0 Aún no disponible
Enhancements
-
2.7.0 Aún no disponible
Enhancements
-
2.6.0 Aún no disponible
Enhancements
-
2.5.1 Aún no disponible
Bug Fixes
-
2.5.0 Aún no disponible
Enhancements
-
2.4.2 Aún no disponible
Bug Fixes
-
2.4.1 Aún no disponible
Bug Fixes
-
2.4.0 Aún no disponible
Enhancements
-
2.2.6 Aún no disponible
Enhancements
-
2.2.5 Aún no disponible
Enhancements
-
2.2.4 Aún no disponible
Enhancements
-
2.2.3 Aún no disponible
Enhancements
-
2.2.2.1 Aún no disponible
Bug Fixes
-
2.2.2 Aún no disponible
Enhancements
-
2.2.1 Aún no disponible
Bug Fixes
-
2.2.0 Aún no disponible
Enhancements
-
2.1.2 Aún no disponible
Bug Fixes
-
2.1.1 Aún no disponible
Enhancements
-
2.1.0 Aún no disponible
Bug Fixes
-
2.0.9 Aún no disponible
Enhancements
-
2.0.8 Aún no disponible
Bug Fixes
-
2.0.7 Aún no disponible
Enhancements
-
2.0.6 Aún no disponible
Enhancements
-
2.0.5 Aún no disponible
Bug Fixes
-
2.0.4 Aún no disponible
Enhancements
-
2.0.3 Aún no disponible
Enhancements
-
2.0.2 Aún no disponible
Enhancements
-
2.0.1 Aún no disponible
0.1 is the official version after beta, and includes all the changes from 2.0.0 (beta).
-
2.0.0 Aún no disponible
0.0 is the official version number for the transition to CMB2, and 2.0.1 is the official version after beta. It is a complete rewrite. Impro...
-
1.2.0 Aún no disponible
Enhancements
-
1.1.3 Aún no disponible
Bug Fixes
-
1.1.2 Aún no disponible
Bug Fixes
-
1.1.1 Aún no disponible
Bug Fixes
-
1.1.0 Aún no disponible
Enhancements
-
1.0.2 Aún no disponible
Enhancements
-
1.0.1 Aún no disponible
Enhancements
-
1.0.0 Aún no disponible
Added textdatetimetimestamptimezone type, a datetime combo field with an additional timezone drop down, props @dessibelle
-
0.9.4 Aún no disponible Fecha de lanzamiento no indicada
Added field "before" and "after" options for each field. Solves issue with '$' not being the desired textmoney monetary symbol, props @GaryJ...
-
0.9.3 Aún no disponible Fecha de lanzamiento no indicada
Added field type and field id classes to each cmb table row, props @jtsternberg
-
0.9.2 Aún no disponible Fecha de lanzamiento no indicada
Added post type comparison to prevent storing null values for taxonomy selectors, props @norcross
-
0.9.1 Aún no disponible Fecha de lanzamiento no indicada
Added oEmbed field type with ajax display, props @jtsternberg
-
0.9 Aún no disponible Fecha de lanzamiento no indicada
Note: This release requires WordPress 3.3+
-
0.8 Aún no disponible
Added jQuery timepicker, props @norcross
-
0.7 Aún no disponible Fecha de lanzamiento no indicada
Added the new wpeditor() function for the WYSIWYG dialog box, props @jcpry
-
0.6.1 Aún no disponible Fecha de lanzamiento no indicada
Enabled the ability to define your own custom field types (issue #28). props @randyhoyt
-
0.6 Aún no disponible Fecha de lanzamiento no indicada
Added the ability to limit metaboxes to certain posts by id. props @billerickson
-
0.5 Aún no disponible Fecha de lanzamiento no indicada
Fixed define to prevent notices. props @destos
-
0.4 Aún no disponible Fecha de lanzamiento no indicada
Think we have a release that is mostly working. We'll say the initial release :)
Léame
GPL-2.0-or-laterCMB2
CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
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:
- Create metaboxes to be used on post edit screens.
- Create forms to be used on an options pages.
- Create forms to handle user meta and display them on user profile add/edit pages.
- Create forms to handle term meta and display wherever your taxonomies are used.
- Flexible API that allows you to use CMB forms almost anywhere, even on the front-end.
- Several field types are included.
- Custom API hook that allows you to create 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
If you are looking to provide language translation files, Please do so via WordPress Plugin Translations.
Documentation
- CMB2 documentation can be found at the CMB2 wiki on github. Also, If you're into reading code and inline documentation, we tried to keep all functions and methods fully inline-documented.
3rd Party Resources
Custom Field Types
-
CMB2 Field Type: CMB Attached Posts Field from coreymcollins:
custom_attached_posts, for attaching posts to a page. -
CMB2 Field Type: Post Search Ajax by alexis-magina:
post_search_ajaxAttach posts to each other. Same approach as CMB2 Attached Posts Field but with Ajax request, multiple/single option, and different UI. -
CMB2 Field Type: CMB2 Post Search field:
post_search_textadds a post-search dialog for searching/attaching other post IDs. -
CMB2 Field Type: CMB2 User Search field from Mte90:
user_search_textadds a user-search dialog for searching/attaching other User IDs. -
CMB2 Field Type: Google Maps from mustardBees: Custom field type for Google Maps.
The
pw_mapfield stores the latitude/longitude values which you can then use to display a map in your theme. -
CMB2 Field Type: Leaflet Maps from villeristi: Custom field type for Leaflet Maps.
-
CMB2 Field Type: Select2 from mustardBees: Custom field types which use the Select2 script:
- The
pw_select fieldacts much like the default select field. However, it adds typeahead-style search allowing you to quickly make a selection from a large list - The
pw_multiselectfield allows you to select multiple values with typeahead-style search. The values can be dragged and dropped to reorder
- The
-
CMB Field Type: Slider from mattkrupnik: Adds a jQuery UI Slider field.
-
WDS CMB2 Date Range Field from dustyf of WebDevStudios: Adds a date range field.
-
CMB2 Remote Image Select from JayWood of WebDevStudios: Allows users to enter a URL in a text field and select a single image for use in post meta. Similar to Facebook's featured image selector.
-
CMB Field Type: Sorter: This plugin gives you two CMB field types based on the Sorter script.
-
CMB Field Type: Tags: WordPress-Tags-like field type for CMB2. note: this does not set the post tags, but simply provides a unique text input
-
CMB Field Type: Link Picker: Using the Link Picker for CMB2 control, you can choose a link from your WordPress site, or manually enter a link. You can also identify if the link should open in a new window, or not.
-
CMB Field Type: MultidatesPicker: Creates a CMB2 field type that enables a multiple date calendar. It uses a plugin called MultiDatesPicker v1.6.3 for jQuery UI.
-
CMB Field Type: CMB2-radio-image: Image as radio buttons.
-
CMB2 Term Select: Special CMB2 Field that allows users to define an autocomplete text field for terms. Note: this will set the taxonomy terms, but has the option (
'apply_term' => false) to disable and save the term ids as data instead (like for options pages, etc). -
CMB2 Related Links: Allows users to add a related links via a repeating field group. Field inputs are powered by the CMB2 Field Type: CMB2 Post Search field documented above, and so each link can be populated with existing WordPress content by clicking on the search button. Note: this is not a standard field type, but instead a function you use in combination with CMB2::add_field().
-
CMB2 Field Type: Order by rubengc: Allows users to define custom order of predefined options.
-
CMB2 Field Type: Animation by rubengc: Allows users to pickup an animation from Animate.css (includes preview of chosen animation).
-
CMB2 Field Type: Ajax Search by rubengc: Based on CMB2 Field Type: Post Search Ajax, adds the ability to attach posts/users/terms, and the ability to limit the maximum number of attached objects.
-
CMB2 Field Type: Visual Style Editor by rubengc: Custom field for CMB2 which allows customizing style from a small set of controls.
-
CMB2 Field Type: Content Wrap by rubengc: Custom field for CMB2 to store a content wrap values (padding, margin or border width).
-
CMB2 Field JS Controls by rubengc: Show any field similar to Wordpress publishing actions (Post/Page post_status, visibility and post_date submit box field).
-
CMB2 Field Type: Position by rubengc: CMB2 field type to setup a jquery UI position values.
-
CMB2 Field Type: CMB2 Roadway Segments by pixelwatt: This plugin adds a new CMB2 fieldtype for drawing roadway segments onto a map and provides a shortcode for display.
-
CMB2 Field Type: Font Awesome by serkanalgur: This plugin adds a new CMB2 field type for selecting Font Awesome icons.
-
CMB2 Field Type: Typography by eduplessis: This plugin adds a new CMB2 field type "Typography" and it use jQuery fontselect for the font-family selection.
-
CMB2 Field Type: Markdown by Rekenna: This plugin adds a new CMB2 field type "CMB2 Markdown" where you can type in markdown and view a live preview of the results or convert to html with a button.
-
CMB2 Field Type: Switch Button by themevan: This plugin adds a Custom Switch Button field type for CMB2.
-
CMB2 Field Type: select_plus from manzoorwanijk: Select field type which acts much like the default
selectfield. However, it adds the support foroptgroupand saving of values withmultipleattribute. -
CMB2 Field Type: Address by scottsawyer: Just a simple, repeatable address field. It's really just the snippet from CMB2 Snippet Library converted to a plugin.
-
CMB2 Field Type: Link by scottsawyer: Create a link field with some attributes. Very nice for styling links.
-
CMB2 Field Type: Widget Selector by scottsawyer: Need a field that lets you ( or your editor ) select / display an existing widget instance? Then this is the plugin for you.
Other Helpful Resources
- CMB2 Admin Extension: Adds a UI to create CMB2 meta boxes from the WordPress admin. Also on wordpress.org.
- WordPress Shortcode Button: Uses CMB2 fields to generate fields for shortcode input modals.
- WDS-Simple-Page-Builder: Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements. Built with CMB2.
- CMB2 Example Theme: Demonstrate how to include CMB2 in your theme, as well as some cool tips and tricks.
- facetwp-cmb2: FacetWP integration with CMB2.
- CMB2-grid from origgami: A grid system for WordPress CMB2 library that allows the creation of columns for a better layout in the admin.
- CMB2 Metatabs Options from rogerlos: CMO makes it easy to create options pages with multiple metaboxes--and optional WordPress admin tabs.
- CMB2 Conditionals from jcchavezs: Allows developers to relate fields so the display of one is conditional on the value of another.
- CMB2 Metabox Code Generator from willthemoor: Skip the boring bits. Use this generator to create fully functional CMB2 metaboxes easily. Now with bulk entry!
- Caldera Metaplate by CalderaWP: Not specific to CMB2, but allows creating templates for outputting your custom fields.
- Yoast CMB2 Field Analysis WP Plugin by alexis-magina: This plugin adds in a js based method of recalculating Yoast SEO's content scores when updating page content, specifically custom meta fields added via the CMB2 library.
- Skeleton by awethemes: A complete framework for WordPress, uses CMB2 engine.
- WP Simple Iconfonts by awethemes: An icon fonts manager and provides a font icon picker for CMB2.
- CMB2 Nav Menus by nsrosenqvist: Lets you use CMB2 in nav menu entries..
Links
Known Issues
- Metabox containing WYSIWYG editor cannot be moved or used in a repeatable way at this time (this is a TinyMCE issue).
- Not all fields work well in a repeatable group.
Installation
If installing the plugin from wordpress.org:
- Upload the entire
/CMB2directory to the/wp-content/plugins/directory. - Activate CMB2 through the 'Plugins' menu in WordPress.
- Copy (and rename if desired)
example-functions.phpinto to your theme or plugin's directory. - Edit to only include the fields you need and rename the functions.
- Profit.
If including the library in your plugin or theme:
- Place the CMB directory inside of your theme or plugin.
- Copy (and rename if desired)
example-functions.phpinto a folder above the CMB directory OR copy the entirety of its contents to your theme'sfunctions.phpfile. - 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).
- Profit.
Faq
FAQ's usually end up in the github wiki.
Upgrade Notice
2.10.1
Bug Fixes
- Fix issue with date picker formatting. Fixes #1448.
2.10.0
Enhancements
- Sanitize URLs, defaulting to
https. Props @paulschreiber (#1413). - Establish Cypress E2E Testing. Props @markjaquith (#1437).
- Updated the JS
shiftRowsfunctionality to be simpler, and fix issues with JS initialization. Fixes #1426 and #1431. - Updated various NPM dependencies for security issues.
Bug Fixes
- Update to prevent deprecation notice:
Required parameter $i follows optional parameter $args.... Props @carloswph (#1417). - Make each date field more resilient to various date/timestamp values passed in (from REST API).
2.9.0
Enhancements
- Added
cmb2_tab_group_tabsfilter for adding arbitrary menu page urls to the cmb2 tabs, and move tab markup output to separate method,CMB2_Options_Hookup::options_page_tab_nav_output(). Fixes #1407. - Limit use of italic, including removing from field descriptions. Fixes #1404.
- Add to list of valid image types from
get_allowed_mime_types(), which makes SVGs more reliable when using the Safe SVG plugin. Fixes #1223.
Bug Fixes
- Fixes PHP warnings on repeatable ColorPicker with an array as default. Props @rubengc (#1340).
- Address PHP 7.4, compatibility issues with
func_get_args(). Fixes #1389. - Better generated array key for cached fields, fixes issue where wrong field is found. Fixes #14053.
- Fix issue with options-pages being changed to register on a hook priority of
5instead of the default10, causing some back-compatibility issues. Fixes #1410.
2.8.0
Enhancements
- Added CODE_OF_CONDUCT.md file to meet GitHub Community standards. Props @RubenMartins (#1331).
- Add ability to define the page-registration admin menu hook priority for options pages. Fixes #1380.
Bug Fixes
- Ensure
enqueue wp-color-pickeris enqueued for color fields. Props @rubengc (#1339). - Fix empty name/id attributes on
'file_list'buttons. Props @pgroot91 (#1347). - Fix
wysiwygfield type not working in a group, by ensuring scripts properly enqueued. Props @yoren (#1361). - Fix
$object_iddoc block types in helper-functions.php. Fixes #1365. - Fix Metabox toggles visually broken with WP 5.5.x. Fixes #1382.
- Fix
PHP Deprecated: Required parameter $field_id follows optional parameter $type, due to changes in PHP 8.0. Fixes #1396. - Fix PHP notice caused by
deprecated_parammethod in PHP 7.4. Props @jonathanstegall (#1400).
2.7.0
Enhancements
- Added support for sortable columns by default, with ability to disable with
'column' => array( 'disable_sortable' => true ). Props [@RubenMartins](
Instalar
composer require meteorgpl-plugin/cmb2
Las comprobaciones de licencia del proveedor están intactas: activa el plugin en WordPress con una clave de licencia comprada al proveedor.
Licencia
Licencia declarada: GPL-2.0-or-later. El código se redistribuye bajo la licencia que el proveedor declaró en las cabeceras del propio plugin. Perfil de licencia: gpl-full.
Las ilustraciones, fuentes, archivos multimedia y documentos que puedan tener una licencia independiente no se redistribuyen; la página de licencias explica qué se sustituye o elimina, y la pestaña de seguridad lo detalla por versión. El soporte y el derecho a actualizaciones vienen con la licencia que compras al proveedor.