//???????? textarea ?????????????????contact form7? add_filter('wpcf7_validate_textarea', 'wpcf7_validation_textarea_hiragana', 10, 2); add_filter('wpcf7_validate_textarea*', 'wpcf7_validation_textarea_hiragana', 10, 2); function wpcf7_validation_textarea_hiragana($result, $tag) { $name = $tag['name']; $value = (isset($_POST[$name])) ? (string) $_POST[$name] : ''; if ($value !== '' && !preg_match('/[?-?]/u', $value)) { $result['valid'] = false; $result['reason'] = array($name => '??? / ?????????????'); } return $result; }
Warning: Cannot modify header information - headers already sent by (output started at /home/users/0/bellbet/web/veronica/wp-content/themes/MediaThemeRes/functions.php:228) in /home/users/0/bellbet/web/veronica/wp-includes/pluggable.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/users/0/bellbet/web/veronica/wp-content/themes/MediaThemeRes/functions.php:228) in /home/users/0/bellbet/web/veronica/wp-includes/pluggable.php on line 1270