wp_sprintf_l
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'wp_sprintf_l', array $delimiters )
Описание
Заполнители (%s) включены, чтобы помочь переводчикам, и удаляются до того, как массив строк попадёт в фильтр.
Обратите внимание: здесь следует избегать амперсандов и сущностей.
Оригинал (английский)
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.
Фильтруемое значение
Параметры
$delimiters
array
обязательный
Исходный код
wp-includes/formatting.php:5346
$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' ), '', '' ),
/* translators: Used to join items in a list with only 2 items. */
'between_only_two' => sprintf( __( '%1$s and %2$s' ), '', '' ),
)
);
История изменений
| Версия | Описание |
|---|---|
| 2.5.0 | Introduced. |

