Description:
CMB2 Conditionals 1.0.4 is a plugin built for CMB2, the framework maintained by WebDevStudios. Its purpose is to let developers establish relationships between fields in a CMB2 setup, so that the visibility of one field can depend on the state of another. Rather than showing every field at all times, the plugin makes it possible to tie fields together in a way that reflects the logic of the data being collected.
The core behaviour is straightforward. A developer can relate one field to another so that the related field only appears when the other field has a specific value. Alternatively, a field can be set to appear only when the other field is not empty. This covers two common cases: showing a field based on a chosen option, and showing a field only once some content has been entered elsewhere. In both cases the relationship is defined between fields, and the plugin handles the conditional display that follows from it.
Because the plugin works on top of CMB2, it is aimed at developers who already use CMB2 to build metaboxes and custom fields in their projects. Anyone integrating CMB2 into a theme or plugin can add CMB2 Conditionals to gain this field relationship capability without replacing their existing setup. The plugin does not change how CMB2 itself works; it adds a layer on top that governs when particular fields appear based on the values of related fields.
Getting started is documented through the examples included in the example-functions.php file that ships with the plugin. Developers are directed to follow these examples to learn how to set up conditional relationships between their own fields. The examples serve as the practical reference for the plugin, showing how fields are related so that one appears only when another holds a specific value or is not empty. With version 1.0.4, the plugin provides this conditional field behaviour as an addition to a CMB2 based project, with the included example file as the starting point for implementation.
Main Features of CMB2 Conditionals:
- Relate fields in CMB2
- Show a field only when another field has a specific value
- Show a field only when another field is not empty
- Includes an example-functions.php file with examples to get started
EffectIO members receive updates through the managed update channel. Install the EffectIO Connect plugin on your site and it handles activation, updates and licensing automatically.
Need a dashboard view of all your EffectIO assets? The EffectIO Dashboard shows what is installed, what is licensed, and what has an update available.
The 1.0.4 version stays on this update channel for the subscription year.











Reviews
There are no reviews yet.