Pages

Thursday, November 5, 2015

Contact form 7 remoce select box (Dropdown) default value

function my_wpcf7_form_elements($html) {
function replace_include_blank($name, $text, &$html) {
$matches = false;
preg_match('/
if ($matches) {
$select = str_replace('', '', $matches[0]);
$html = preg_replace('/
}
}
replace_include_blank('mc4wp-age', 'AGE*', $html);
return $html;
}
add_filter('wpcf7_form_elements', 'my_wpcf7_form_elements');

No comments: