/** * Change the error text message that appears. * * @link https://wpforms.com/developers/how-to-change-the-error-text-for-failed-submissions/ */ function wpf_translated( $translated_text, $text, $domain ) { // Bail early if it's not WPForms string. if ( $domain !== 'wpforms-lite' ) { return $translated_text; } // Compare against the original string (in English). if ( $text === 'The form was unable to submit. Please contact the site administrator.' ) { $translated_text = __('The form was unable to submit. Please try again. If this error persists please contact the site administrator.', 'wpforms'); } return $translated_text; } add_filter( 'gettext', 'wpf_translated', 10, 3 );

King’s Feet Literary Festival