wp_sprintf_l WordPress Filter Hook
The wp_sprintf_l hook is used to modify how strings are displayed in various languages. By default, WordPress will display strings using the language set in your WordPress Settings. However, you can use this hook to force WordPress to use a different language for specific strings. This is useful if you need to display a string in a language that is different from your WordPress Settings.
apply_filters( 'wp_sprintf_l', array $delimiters ) #
Filters the translated delimiters used by wp_sprintf_l().
Description
Placeholders (%s) are included to assist translators and then removed before the array of strings reaches the filter.
Please note: Ampersands and entities should be avoided here.
Parameters
- $delimiters
(array)An array of translated delimiters.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |