Display an ACF Block Types selector as radio, checkbox or select field type.
| Setting name | Description |
| Allow Block Types | Filter which block types can be chosen |
| Appearance | Select the appearance of this field |
| Default Value | Enter each default value on a new line |
| Return Value | Return the block type name or block type object |
| Allow Null | Allow empty value |
| Layout | Choose the layout |
| Toggle | Allow to toggle all values |
| Allow Custom | Allow custom value |
| Save Custom | Save custom value in the field settings |
| Select multiple values | Allow multiple values selection |
| Stylised UI | Enable Select2 UI style |
$block_types = get_field('block_types');
// my-block-type$block_types = get_field('block_types');
/**
* array(
* 'name' => 'acf/my-block-type',
* 'title' => 'My Block Type',
* 'description' => '',
* 'category' => 'layout',
* 'icon' => '',
* 'mode' => 'preview',
* ...
* )
*/$block_types = get_field('block_types', false, false);
// my-block-type