wppaste
WordPress

apply_filters( 'wp_sprintf_l', array $delimiters )

Since
2.5.0
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.

Compatibility

WordPress
since 2.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$delimitersarray
An array of translated delimiters.

Where this hook fires · 1

  • wp-includes/formatting.php:5355wp_sprintf_l()

Source code

	 * Please note: Ampersands and entities should be avoided here.	 *	 * @since 2.5.0	 *	 * @param array $delimiters An array of translated delimiters.	 */	$l = apply_filters(		'wp_sprintf_l',		array(			/* translators: Used to join items in a list with more than 2 items. */			'between'          => sprintf( __( '%1$s, %2$s' ), '', '' ),			/* translators: Used to join last two items in a list with more than 2 times. */			'between_last_two' => sprintf( __( '%1$s, and %2$s' ), '', '' ),

Changelog

Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.