Categories
Web Development

Replace the Blank Line in Contact form 7 Select List

function my_wpcf7_dropdown_form($html) {
    $text = 'Your Replacement text here';
    $html = str_replace('---', '' . $text . '', $html);
    return $html;
}
add_filter('wpcf7_form_elements', 'my_wpcf7_dropdown_form');