### [wpforms_frontend_strings](https://wpforms.com/developers/wpforms_frontend_strings/)

**Published:** May 27, 2020
**Author:** Editorial Team

**Excerpt:** Filter used to change the string text that appears when limiting characters or words inside a <strong>Single Line Text</strong> or <strong>Paragraph Text</strong> form field. 


**Content:**

## Description

The `wpforms_frontend_strings` filter is used to change the string text that appears when limiting characters or words inside a **Single Line Text** or **Paragraph Text** form field.

## Parameters

$strings*(string)* String text used to display a message of how many remaining characters (or words) left when limiting the text of the form field.## Source

`wpforms/src/Frontend/Frontend.php`

## More Information

The filter is used to change the string text message that appears below the **Single Line Text** or **Paragraph Text** form fields when limiting either the character or word counts.

## Example

```

/**
 * Limiting character or word display message.
 *
 * @link   https://wpforms.com/developers/wpforms_frontend_strings
 *
 * @param  string $strings  String text used to display message under the form field when limiting character or word count.
 * @return string
 */

function wpf_dev_frontend_strings( $strings ) {
     
    // val_limit_words to be used when limiting words
    // val_limit_characters to be used when limiting characters   
     
    $strings[ 'val_limit_characters' ] = __( 'You have used {count} out of the {limit} characters allowed.', 'plugin-domain' );

    return $strings;
}

add_filter( 'wpforms_frontend_strings' , 'wpf_dev_frontend_strings', 10, 1 );

```

## Reference Articles

[How to Change the Limit Character Validation Text](https://wpforms.com/developers/how-to-change-the-limit-character-validation-text/ "How to Change the Limit Character Validation Text")

**Categories:** Filters Hooks

**Tags:** PHP

---

