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.


Top ↑

Parameters

$delimiters

(array)An array of translated delimiters.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More