You can add filter hook for changing default text ” —Please choose an option—” .
$html = str_replace(‘—Please choose an option—’, $text, $html);
function my_wpcf7_form_elements($html) {
//wp_send_json($html );
$text = 'Select Option';
$html = str_replace('—Please choose an option—', $text, $html);
return $html;
}
add_filter('wpcf7_form_elements', 'my_wpcf7_form_elements');
-
This reply was modified 1 year, 4 months ago by MH Sohag.
-
This reply was modified 1 year, 4 months ago by MH Sohag.