WP Manifestindependent plugin directory
manifest / content / cmb2-select-plus

CMB2 Select Plus

Smart Select field for CMB2 with "optgroup" and "multiple" attribute support

by Manzoor Wani · github.com/manzoorwanijk/cmb2-select-plus · website

5stars
808composer installs
2forks

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/manzoorwanijk/cmb2-select-plus/archive/refs/heads/master.zip

Also on Packagist as manzoorwanijk/cmb2-select-plus:

composer require manzoorwanijk/cmb2-select-plus

From the readme

CMB2 Field Type: selectplus Description selectplus field type for CMB2. This plugin gives you an additional field type in CMB2: selectplus The field acts much like the default select field. However, it adds the support for optgroup and saving of values with multiple attribute. Installation You can install this field type as you would a WordPress plugin: 1. Download the plugin 2. Place the plugin folder in your /wp-content/plugins/ directory 3. Activate the plugin in the Plugin dashboard Alternatively, you can include this field type within your plugin/theme. You may also install this field type using composer: Usage Normal Select Field Select Field with optgroup multiple attribute You can use the multiple attribute and the field value will be saved as array Why SelectPlusCMB2Types class? - This enables you to use it flexibly in case you need to just render the field, not the whole row. - It allows you to override the default args of the field

Read the full README on GitHub →

Releases

TagPublished
v1.0.1 Aug 17, 2023
v1.0.0 Feb 27, 2023

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.