Field Render

Display a Post Type selector as radio, checkbox or select field type.

Field Group

Field Settings

Setting nameDescription
Filter which urser role can be chosen
AppearanceSelect the appearance of this field
Return the user role name or object
Allow empty value
LayoutChoose the layout
ToggleAllow to toggle all values
Allow custom value
Allow multiple values selection
Stylised UIEnable Select2 UI style

Field Value

Value can then be retrieved using the common get_field() function. Usage example:

$user_role = get_field('user_role');

// editor