Created
May 25, 2015 21:05
-
-
Save tacensi/f1c03e760ceb1b02f2fb to your computer and use it in GitHub Desktop.
Change CF7 select blank line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Alterando o texto da blank line do Contact form 7 | |
function my_wpcf7_form_elements($html) { | |
$text = 'Selecione o departamento'; | |
$html = str_replace('<option value="">---</option>', '<option value="">' . $text . '</option>', $html); | |
return $html; | |
} | |
add_filter('wpcf7_form_elements', 'my_wpcf7_form_elements'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment