According to the documentation you have to create a custom filter to support it – you can do it like this:
add_filter( 'wpcf7_validate_text*', 'custom_text_validation_filter', 20, 2 );
function custom_text_validation_filter( $result, $tag ) {
if ( 'your-name' == $tag->name ) {
// matches any utf words with the first not starting with a number
$re="/^[^\p{N}][\p{L}]*/i";
if (!preg_match($re, $_POST['your-name'], $matches)) {
$result->invalidate($tag, "This is not a valid name!" );
}
}
return $result;
}
Related Posts:
- Server side validation for Contact Form 7 [closed]
- Contact Form 7: custom validation [closed]
- Contact form 7 select box different value-text than content-text in option [closed]
- Validation error: Extending Gutenberg gallery block
- Why “Contact Form 7” doesn’t update PHPmailer library?
- How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action
- To Disable WordPress Rest API or Not To Disable?
- How do I sanitize a javascript text?
- Validation Function for URL in plugin
- Contact Form 7 plugin refreshing page on submit [closed]
- How to disable autocomplete for inputs in contact form 7? [closed]
- Stop the form of beign submitted on “Save changes” custom option page
- Assignments must be the first block of code on a line Validation Error on Travis
- get values from contact form 7 wp plugin [closed]
- Add custom variable in Contact Form 7 mail body
- Calling JavaScript file with Custom Plugin
- Can’t send mails using contact plugin [closed]
- Download any file after submitting a form [closed]
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Getting value from dymanic text variable into Contact Form 7
- How to escape the tailwindcss responsive syntax when using with contact form 7? [closed]
- Nextcloud integration with wordpress
- Shrink down register_settings on Settings API
- Send Contact form 7 data to remote server using .NET api [closed]
- how to create progress bar in wordpress contact form 7 or other plugin for set progress bar in cf7 [closed]
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- Contact Form 7 – Form name blank [closed]
- WordPress contact form 7 to show the form dropdown menus as like [closed]
- Contact Form 7 – Show image on successful send? [closed]
- Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one
- How to modify or create custom contact form 7 select options [closed]
- How to add HTML5 required on wp_editor
- Hardcode a form in Contact Form 7 [closed]
- Remove border attribute from Pin It Button image to pass HTML5 validation [closed]
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Contact Form 7: Load scripts and styles only when there is shortcode? [closed]
- In wordpress how to sent different email separetly when i click on different email ids [closed]
- value not set in contact form 7 plugin of wordpress [closed]
- acceptance_as_validation: on is not working Contact form 7 [closed]
- Contact Form 7 is not redirecting the “Thank-You” page with the removal of CSS and JS of plugins
- Push Contact form 7 variable to front end after submission
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- How can I implement radio buttons with icons in Contact form 7?
- Hide button after form submit and save state to localstorage
- Contact Form 7 – Make a selection unavailable after a number of bookings
- WordPress Contact 7 Form – Remove WordPress from the From Sections
- Installation failed, trying to install ANY plugin
- CF7 Custom Recipient – Changing the text
- Multiple CF7 Forms causing multiple recaptcha requests
- Could someone maybe point me in the direction of a decent tutorial on how to create a wordpress plugin that is compatible with another plugin please?
- Capture Recaptcha fail event on Contact Form 7
- get/show Last ID
- Form is not getting submitted [closed]
- User content database [closed]
- Plugin option for input box validation
- Conditional required fields for WordPress Contact Form 7
- Retrieving old forms in Contact Form 7 [closed]
- register_setting – validation callback weirdness
- Integrate Mailchimp to a Contact Form 7 contact form [closed]
- How put a file when the email is sent to user contact form 7
- Contact Form 7 Default value from url [closed]
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Contact form 7 – How to send mail to two different E-mail Address [closed]
- prevent contact form 7 from submission on certain condition
- plugin doesn’t retrieve data from database
- LaTex MarkUp – align equations
- How Do I add a redirect rule to WordPress?
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- How to display a category list in a mediawiki like way?
- Comparisson between date() and a date from wp_postmeta
- wp_mail() is not working on server
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Is there plugin to show recent posts from one website in the widget area of another?
- Making a plugin “Suite”?
- Automatically add attributes to woocommerce product?
- How to apply a patch via plugin?
- How do I log out users from a restricted page if they are already logged in on another device? [closed]
- Getting wp.me shortlink for wordpress custom post type
- where is the main file in this plugin?
- Problem since update 3.5 [duplicate]
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Show icons or badges under title on product archives/category pages
- How to get images using taxonomy ( WP Media Folder)
- Disallow: /wp-* in robots.txt?
- Structuring function with registration_errors hook
- wp_query ‘s’ parameter does not work with WC_AJAX
- Monitor all the queriers executed by my website
- How to remove a hook written with $this?
- How to allow code like PHP, SQL, HTML to WPBakery Visual Composer?
- Changing author slug for a custom role without using plugin
- How can I mass-open/edit all WordPress posts & pages?
- Need woocommerce function for getting cart list with items
- Allowing Comments on Posts
- Creating Custom Hook for my plugin
- Showpost and last
- How to install wordpress theme’s plug-ins?
- [Custom field template plugin] Upload limited to 20 inputs file
- Social network plugins for WordPress [closed]
- My wp_update_nav_menu action is firing twice
- Ajax button “Load more” is not loading correct language version posts for logged out users