# Strings

This configuration contains an array of reusable HivePress strings. It's mainly used to avoid duplicating translations in the HivePress themes and extensions. You can get any of the available strings by the string name:

```php
echo hivepress()->translator->get_string( 'listings' );
```

The code example below changes the "Listings" word in HivePress along with its themes and extensions. In the same way, you can change any of the available strings or add a new one by adding an array item.

```php
add_filter(
	'hivepress/v1/strings',
	function( $strings ) {
		$strings['listings'] = 'Custom Text';

		return $strings;
	}
);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hivepress.io/developer-docs/framework/configurations/strings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
