Title: change default validation message
Last modified: January 14, 2022

---

# change default validation message

 *  Resolved [pawandongoloutside](https://wordpress.org/support/users/pawandongoloutside/)
 * (@pawandongoloutside)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/change-default-validation-message/)
 * How to change default validation message of hcaptcha in contact form 7?
    I need
   to change “Please complete the captcha.” validation message.
    -  This topic was modified 4 years, 4 months ago by [pawandongoloutside](https://wordpress.org/support/users/pawandongoloutside/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/change-default-validation-message/#post-15255172)
 * All messages from the plugin are sent via gettext API, according to WP standards.
   That is why you can use the `gettext` filter:
 *     ```
       /**
        * Filters text with its translation.
        *
        * @param string $translation Translated text.
        * @param string $text        Text to translate.
        * @param string $domain      Text domain. Unique identifier for retrieving translated strings.
        */
       function my_hcaptcha_message( $translation, $text, $domain ) {
       	if ( 'hcaptcha-for-forms-and-more' !== $domain || 'Please complete the captcha.' !== $text ) {
       		return $translation;
       	}
   
       	return 'My text for the completion of hCaptcha';
       }
   
       add_filter( 'gettext', 'my_hcaptcha_message', 10, 3 );`
       ```
   
    -  This reply was modified 4 years, 4 months ago by [kaggdesign](https://wordpress.org/support/users/kaggdesign/).

Viewing 1 replies (of 1 total)

The topic ‘change default validation message’ is closed to new replies.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

## Tags

 * [validation message](https://wordpress.org/support/topic-tag/validation-message/)

 * 1 reply
 * 2 participants
 * Last reply from: [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/change-default-validation-message/#post-15255172)
 * Status: resolved