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
- How can I create a drawable image for a contact form
- On the same site, how do I send data from a plugin file to a theme file?
- Different login and logout for wp-admin while using buddypress
- Block registration with viewScript
- Display out of stock products in WooCommerce [closed]
- How can I properly sanitize the update_option in WordPress?
- How to register new elementor widget in functions.php
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- how to embed a crop feature for cropping images uploaded by the user
- Console errors after WordPress Update 6.1
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Why is my menu page not being displayed?
- Foreach retun in shortcode
- How to change post status to draft in Gutenberg?
- How to modify submit button on GravityForms
- How to add custom html to the Media > Attachment Details modal?
- Filter custom post type returned from REST api
- Plugin Option Fire Custom Function After Save
- Unable to access WPadmin, website down
- ‘Active lotteries’ only custom query for woocommerce lottery plugin and elementor
- WP Elementor Pro causing crtical failure on website
- My wp_update_nav_menu action is firing twice
- How to display content depending on the Woocommerce Product Category
- WooCommerce Subscriptions not working for variable product
- Ajax button “Load more” is not loading correct language version posts for logged out users
- Is it possible to add permalink when using wp_insert_post?
- Render CMB2 select option to post page [closed]
- Create Custom Coupon Type
- WordPress REST API Visual Composer Shortcodes
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- Update acf field in woocommerce orders
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- Displaying Category Feature image on loop
- GTranslate Plugin – Showing Different Codes With if-else
- Text Wrapping in WPDataTables