Fail on use accents in wpcf7_form_tag_data_option filter
-
I’m using the ‘wpcf7_form_tag_data_option’ (a great filter, btw!) with the following codes:
For the form:<label Select: [select* menu-178 include_blank data:my.unique.id]</label>
add_filter( 'wpcf7_form_tag_data_option', 'uniqueid_wpcf7_categorias', 10, 3 ); function uniqueid_wpcf7_categorias( $null, $options, $args ) { if (in_array('my.unique.id',$options)) { return array("Baba", "Pedreiro", 'Mecanico'); } return $null; }
Everything works fine, but when I change the code:
return array("Baba", "Pedreiro", 'Mecanico');
for this code:
return array("Babá", "Pedreiro", 'Mecânico');
,
the result only shows the “Pedreiro” option.I tested a direct input of Babá and Mecânico (like bellow) and it worked out.
<label Select: [select* menu-178 include_blank "Babá" "Pedreiro" "Mecânico"]</label>
How could I solve it?
Thanks in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fail on use accents in wpcf7_form_tag_data_option filter’ is closed to new replies.