Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to filter the supported field types list.
Usage
add_filter('frm_acf_supported_field_types', 'acf_map_text_to_email');
Parameters
- $field_types (array): Field types list, is an array with key as Formidable field type and value is an array of ACF field types.
Examples
Map text field to ACF email field
Use this code example to allow Formidable text field to be mapped to an ACF email field.
add_filter('frm_acf_supported_field_types', 'acf_map_text_to_email');
function acf_map_text_to_email( $field_types ) {
$field_types['text'][] = 'email';
return $field_types;
}