I am trying to put multiple filters an more than one type. So, I have this code:
}
add_filter('cf7_pipedrive_deal_fields', 'update_fields');
function update_fields($fields) {
$fields['90466f443dbc1f5ff84ca8b069cb4a0fdf064087'] = array( 'api_key' => '90466f443dbc1f5ff84ca8b069cb4a0fdf064087', 'display_name' => 'Data da consulta');
return $fields;
}
add_filter('cf7_pipedrive_person_fields', 'update_fields');
function update_fields($fields) {
$fields['a588cb657c7c6bfd224de8a8226cf969c58df494'] = array( 'api_key' => 'a588cb657c7c6bfd224de8a8226cf969c58df494', 'display_name' => 'NIF');
return $fields;
}
But returns with HTML error 500
What am I doing whrong? It accepts only one add_filter without error. If I put 2, it breaks the page.
Any idea?
Best regards,
Vitor