WDS CMB2 User Select
Select a user to associate with your object
by WebDevstudios · github.com/webdevstudios/cmb2-user-select · website
★ 21stars
1.3kcomposer installs
9forks
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/webdevstudios/cmb2-user-select/archive/refs/heads/master.zipAlso on Packagist as webdevstudios/cmb2-user-select:
composer require webdevstudios/cmb2-user-selectFrom the readme
CMB2-User-Select
Special CMB2 Field that allows users to define an autocomplete text field for users
Example
The value returned is an array with the users id and name, eg:
This will be serialised if saved directly into the database.
If you wish to store the users ID only, you can use escapecb and sanitizationcb to transform
the data.