Display a Post Type selector as radio, checkbox or select field type.
Setting name | Description |
Allow user roles | Filter which urser role can be chosen |
Appearance | Select the appearance of this field |
Return Value | Return the user role name or object |
Allow Null | Allow empty value |
Layout | Choose the layout |
Toggle | Allow to toggle all values |
Allow Custom | Allow custom value |
Select multiple values | Allow multiple values selection |
Stylised UI | Enable Select2 UI style |
$user_roles = get_field('user_roles');
// editor
$user_roles = get_field('user_roles', false, false);
// editor