PageForge 1.3: Verifique todas as corridas antes de escrever, atualize as páginas geradas, SpinTax e lotes reumáveis. Veja o que mudou
CMB2 icon
Manutenção ativamente Testado com WP 7.1 #195 most installed plugin #2 in fields

CMB2

CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.

Instalações ativas300K+Nível 100K+
Downloads · 30d58.1K▼ -81.5% vs prev. 30d
Classificação5/591 reviews
Pontuação da saúde89/100Excelente
Downloads de todos os tempos5.8MSince Sep 2014
Suporte resolvido—Sem tópicos recentes
RequerWP 3.8.0Php 7.4+
Classificação geral#195of 76,718 plugins
Nosso veredicto

Escolha segura

Yes — CMB2 is a safe, well-maintained plugin to use in 2026. It runs on 300K+ sites, is rated 5/5 and was last updated 1 month ago, and scores 89/100 on our health check.

  • Comprovado em escala em mais de 300 mil sites ativos
  • Loved by users — 5/5 from 91 reviews
  • Testado com as últimas WordPress (7.1)

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

12.4K24.7K37.1KAug 31Oct 14Nov 28
Ontem1,000
Média diária (1y)2,368
Dia de pico50,85331 de maio de 2026
Últimos 12 meses861.8K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where CMB2 stands today
Popularidade geral #195 of 76,718 WordPress.org plugins Top 0.25%
100K+ Instala o nível 67 of 328
Próximo nível: mais de 500 mil instalações
Fields #2 of 80 plugins → Formulários #7 of 701 plugins → Metaboxes #2 de 13 plugins → Opções #2 of 88 plugins → Definições #2 of 99 plugins →

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
fields #83 10,000 Best fields plugins →
formulários >100 10,000 Plugins de melhores formulários →
metaboxes #2 307 Best metaboxes plugins →
options #37 10,000 Best options plugins →
settings #12 10,000 Best settings plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 2.1345.1%
  • 2.1129.6%
  • 2.109.5%
  • 2.128.2%
  • Outros7.7%

Divisão de classificação

★★★★★★★★★★ 5 from 91 reviews

  • 5★98.9%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★1.1%

About CMB2

From the official readme · v2.13.5

Descrição

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

Recursos:

Translation

If you are looking to provide language translation files, Please do so via WordPress Plugin Translations.

Documentação

  • 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

Other Helpful Resources

Links

View CHANGELOG

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.

Instalação

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.

Log de Changes

Security release: fixes stored cross-site scripting in grouped wysiwyg fields. On sites that render a front-end CMB2 form (cmb2_get_metabox_form()) with such a field, an unauthenticated visitor could save markup that runs for anyone viewing that form or the post's edit screen. Update recommended.

2.13.5

Enhancements

  • [Development] Fixed the PHPUnit CI legs that test against the latest WordPress: they now use the test suite tagged for the latest stable release instead of wordpress-develop trunk, which can require core APIs a stable release does not have yet.

Correções de bugs

  • Fixed multicheck and multicheck_inline fields (including inside a group) not saving when the only checked option has the value 0. Non-repeatable array values that hold only 0 or '0', such as from custom field types, are no longer treated as empty and deleted on save. Such a field now stores array( '0' ), so metadata_exists() returns true, cmb2_save_field reports updated instead of removed, and a field with a default no longer falls back to that default when only 0 is checked. Props @faisalahammad. Fixes #1535 (#1572).
  • Fixed repeatable fields (including repeatable fields in a group) dropping a 0 or '0' entry on save and not showing a saved 0 row on the edit screen, so the next save removed it. A 0 entry is now kept and passed to the field type’s sanitizer like any other entry: repeatable text_url stores the field default (or false), text_email stores '', text_date_timestamp stores timestamp 0, and a text_datetime_timestamp row that parses to epoch 0 is kept (the edit screen still shows a 0 timestamp as empty, so re-saving the form removes that row). Custom sanitization_cb callbacks and cmb2_sanitize_{$type} filters now receive '0' entries in repeatable arrays, and sanitization_cb => false stores them. A repeatable text_money entry of 0 now saves as 0.00 instead of being removed. Props @faisalahammad (#1574).
  • Fixed a repeatable field saving its hidden “empty row” template as an extra row on every save. This happened when the template had a value, such as a repeatable select without show_option_none (its first option was saved) or a field with a default. The template row’s inputs are now rendered with disabled and a data-cmb2-template attribute, so the browser does not submit them, and the Add Row button enables them. Custom JavaScript that copies .empty-row itself, instead of using the Add Row button, must remove disabled from inputs that have data-cmb2-template. Props @faisalahammad (#1574).
  • Fixed wysiwyg fields inside a group not escaping their saved value in the editor. The editor now loads the content exactly as saved: entities such as &amp; are no longer decoded on load (and then saved decoded), and saved markup such as a </textarea> tag stays inside the editor. Props Jakub Herman (via Wordfence).
  • Fixed removing the only row of a repeatable field inside a group adding an empty row to the other repeatable fields in that group and its other entries. The reset now fires cmb2_add_row once, on the clicked field’s table, instead of once per repeatable table in the group, and removing the last row while the field’s Add Row button is disabled now does nothing instead of throwing Maximum call stack size exceeded. Props @faisalahammad. Fixes #1515 (#1573).

2.13.4

Enhancements

  • Added the rest_enforce_user_read_permissions box property and the cmb2_rest_enforce_user_read_permissions filter (off by default). When enabled, REST field reads of a user that core does not show (a user with no published posts, read by someone other than that user or a holder of edit_user/list_users) are denied. While neither declares an explicit true or false (the filter defaults to null), such a read stays allowed and emits a deprecation notice (an X-WP-DeprecatedParam header and a debug-log line when WP_DEBUG / WP_DEBUG_LOG are on), since the default will change in a future version. Set the property or filter to false to keep the current behavior.
  • Updated the alpha color picker script (wp-color-picker-alpha) to 3.0.4. Alpha colorpicker fields now output data-alpha-enabled instead of data-alpha; if you set data-alpha yourself through a field’s attributes, rename it to data-alpha-enabled. Props Sajib Talukder (@stalukder03) (#1542).
  • [Development] Added Dependabot version updates for npm and GitHub Actions (monthly, one grouped PR per ecosystem), and applied its first round of dev-tooling and workflow action updates (#1567, #1568).
  • [Development] Restricted the GitHub Actions GITHUB_TOKEN to read-only in all workflows, and moved the Playwright workflow to Node 22.
  • [Development] Expanded SECURITY.md with an email fallback for reports, CVE handling and scope.

Correções de bugs

  • Object IDs that CMB2 reads from the request (user_id, c, tag_ID and post, used when a box has no object ID set) are now cast to integers, the way WordPress reads them on its own edit screens, and the oembed field escapes its data-objectid and data-objecttype attributes. Core save hooks pass explicit IDs and are unaffected. A front-end save_fields() call with no ID now resolves a non-numeric user_id to the current user, as core’s profile screen does, rather than to a string ID that matched no user. cmb2_set_object_id filter callbacks and custom cmb2_override_meta_* storage now receive an integer for these keys. Props T3pp31 (@T3pp31) (via GitHub security advisory).
  • The CMB2 REST field endpoints (/cmb2/v1/boxes/{box}/fields and /fields/{field}) now follow WordPress core’s REST read permissions for the requested object. Reads of a post in a non-public status (draft, pending, private, future, trash); of a post, or an attachment’s parent, whose type is not shown in REST and is not one of the box’s own post types; or of a comment core does not show (unapproved, on a post the requester cannot read, or on a password-protected post the requester cannot edit) return a 401/403 unless the requester can read that object. For anonymous requests this matches core’s own routes. Published and password-protected posts, terms, options pages and custom object types are unchanged, and the cmb2_api_get_field_permissions_check / cmb2_api_get_fields_permissions_check filters (and box *_permissions_check_cb properties) still have the final say. The fields collection now returns a 401/403 for such an object. Props T3pp31 (@T3pp31).
  • A REST field read in the same PHP process as an earlier read of a different object now returns the requested object’s value rather than the earlier object’s.

2.13.3

Correções de bugs

  • The CMB2 REST boxes/fields endpoints now validate the object_type and object_id parameters against the box’s registered object types. A request naming an object type the box is not registered for (a post-type box stores as post), or, for an options-page box, an option key other than the box’s own, returns a 400 error instead of reading or writing that object. Stored data is unchanged. Props Avinash Hanwate (@ahanwate) (via GitHub security advisory).

2.13.2

Correções de bugs

  • Escaped stored values in default field displays, including admin columns and front-end display_cb output. Stored HTML in default text and text_money displays now appears as text. textarea_code preserves visible source and uses <pre class="cmb2-code"> in place of <xmp class="cmb2-code">; integrations selecting the old element should update their selector. Valid source remains unchanged in storage, while unexpected non-scalar values are discarded on save to avoid PHP errors. Props Kuba (via Wordfence).

2.13.1

Registro de change completo em WordPress.org →

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best CMB2 alternatives

All fields plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Campos personalizados avançados (ACF®) Campos personalizados avançados (ACF®) ACF ajuda a personalizar WordPress com campos poderosos, profissionais e intuitivos. Orgulhosamente… pelo motor WP 2M+ ★★★★★★★★★★ 4.5 (1.4K) 1 semana atrás 97
3 Proteja os campos personalizados Proteja os campos personalizados Campos personalizados seguros aumenta o gerenciamento de conteúdo com campos e opções personalizados. isso… por WordPress.org 100K+ ★★★★★★★★★★ 4.8 (69) 1 semana atrás 83
4 Campos personalizados avançados: estendido Campos personalizados avançados: estendido Conjunto de aprimoramentos completos que melhoram WordPress e campos personalizados avançados. Por Konrad Chmielewski 100K+ ★★★★★★★★★★ 4.8 (132) 1 mês atrás 76
5 Dynamic Conditions Dynamic Conditions Activates conditions for dynamic tags to show/hide a widget or section. by rtowebsites 60K+ ★★★★★★★★★★ 4.8 (114) 2 anos atrás 39
6 Campo da galeria de fotos ACF Campo da galeria de fotos ACF Uma extensão leve do Advanced Custom Field (ACF) que adiciona um campo de galeria de fotos a qualquer… Por Navneil Naicker 60K+ ★★★★★★★★★★ 4 (29) 11 meses atrás 47
7 Modelo de campo personalizado Modelo de campo personalizado O plug-in de template de campo personalizado estende a funcionalidade dos campos personalizados. Por Hiroaki Miyashita 30K+ ★★★★★★★★★★ 4 (24) 4 meses atrás 60
8 Custom Block Builder – Lazy Blocks Custom Block Builder – Lazy Blocks Easily create custom blocks and custom meta fields for Gutenberg without hard coding. por NK 20K+ ★★★★★★★★★★ 4.9 (80) 2 dias atrás 94
9 Blocos personalizados do Genesis Blocos personalizados do Genesis Blocos personalizados para WordPress facilitados. por StudioPress 10K+ ★★★★★★★★★★ 4.5 (21) 1 mês atrás 73
10 Product Input Fields for WooCommerce Product Input Fields for WooCommerce Add product addons (fields) to WooCommerce products. Personalise with various product… by tychesoftwares 4K+ ★★★★★★★★★★ 4 (17) 5 dias atrás 73
11 BuddyPress Xprofile Custom Field Types BuddyPress Xprofile Custom Field Types Buddypress Xprofile Custom Field Types adds extra custom profile fields to BuddyPress… by BuddyDev 3K+ ★★★★★★★★★★ 4.9 (16) 3 semanas atrás 65

FAQ

CMB2: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is CMB2 free?

Yes. CMB2 is free to download and use from the official WordPress.org plugin directory.

Is CMB2 safe to use in 2026?

Yes — CMB2 is a safe, well-maintained plugin to use in 2026. It runs on 300K+ sites, is rated 5/5 and was last updated 1 month ago, and scores 89/100 on our health check.

How many websites use CMB2?

CMB2 is active on 300K+ WordPress websites and has been downloaded 5,773,867 times since it launched in September 2014. It was downloaded 58,127 times in the last 30 days.

Does CMB2 work with WordPress 7.1?

Yes. The developer has tested CMB2 up to WordPress 7.1.5, the latest release. It requires WordPress 3.8.0 or newer.

What PHP version does CMB2 need?

CMB2 requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was CMB2 last updated?

The latest version, 2.13.5, was released on October 27, 2026 (1 month ago).

Who makes CMB2?

CMB2 is developed and maintained by Justin Sternberg.

What are the best alternatives to CMB2?

The most popular alternatives to CMB2 are Advanced Custom Fields (ACF… (2M+ installs), Secure Custom Fields (100K+ installs) and Advanced Custom Fields: Ext… (100K+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir