acf/blocks/fields_to_open_in_expanded_editor
Filters the field types that should open in the expanded editor by default.
Usage
add_filter( 'acf/blocks/fields_to_open_in_expanded_editor', 'wp_kama_acf_blocks_fields_to_open_in_expanded_editor_filter' );
/**
* Function for `acf/blocks/fields_to_open_in_expanded_editor` filter-hook.
*
* @param array $field_types An array of field type names.
*
* @return array
*/
function wp_kama_acf_blocks_fields_to_open_in_expanded_editor_filter( $field_types ){
// filter...
return $field_types;
}
- $field_types(array)
- An array of field type names.
Changelog
| Since 6.7.0 | Introduced. |
Where the hook is called
acf/blocks/fields_to_open_in_expanded_editor
acf/pro/blocks.php 2071-2077
$fields_to_open_in_expanded_editor = apply_filters( 'acf/blocks/fields_to_open_in_expanded_editor', array( 'repeater', 'flexible_content', ) );