CMB2 Conditionals
Plugin to relate fields in a CMB2 metabox
by José Carlos Chávez <jcchavezs@gmail.com> · github.com/jcchavezs/cmb2-conditionals · website
★ 89stars
8.2kcomposer installs
60forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jcchavezs/cmb2-conditionals/archive/refs/heads/master.zipAlso on Packagist as jcchavezs/cmb2-conditionals:
composer require jcchavezs/cmb2-conditionalsDeclares an update source (https://github.com/jcchavezs/cmb2-conditionals), so updates arrive through the plugin's own updater.
From the readme
CMB2 Conditionals
Disclaimer
This plugin is loved by many people but unfortunately I can not maintain it anymore so if you want to be a contributor just ping me on gitter.
Description
CMB2 Conditionals is a plugin for CMB2 which allows developers to relate fields so one of them could only appear when one other have an specific value or when is not empty.
To get started, please follow the examples in the included example-functions.php file.
Requirements
- PHP 5.2.4+
- Wordpress 3.8+
- CMB2
Contribution
All contributions welcome. If you would like to submit a pull request, please check out the master branch and pull request against it. Please read the CONTRIBUTING doc for more details.
A complete list of all our awesome contributors found here: github.com/jcchavezs/cmb2-conditionals/graphs/contributors
Installation
If installing the plugin from wordpress.org:
1. Upload the entire /cmb2-conditionals directory to