hide e-mail addresses in dynamically generated dropdown select
-
when “manually” building a dropdown select with pipes as described here, the email addresses are hidden in the output:
<select> <option value="Labeltext">Labeltext</option> </select>
for dynamically generated options however, the adresses are not hidden:
<select> <option value="[email protected]">Labeltext</option> </select>
the options are generated like this:
foreach( $team_members as $team_member ) : $tag['raw_values'][] = 'recipient-'.$team_member.'|'.get_field('team_member_email',$team_member); endforeach; $pipes = new WPCF7_Pipes($tag['raw_values']); $tag['values'] = $pipes->collect_afters(); $tag['pipes'] = $pipes; $tag['labels'] = $pipes->collect_befores();
is it possible to achieve “default behaviour” there, with hidden email addresses?
- The topic ‘hide e-mail addresses in dynamically generated dropdown select’ is closed to new replies.