функция
since 6.0.0
wp_get_list_item_separator()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
wp_get_list_item_separator(): string
Описание
Извлекает разделитель элементов списка в зависимости от локали.
Возвращаемое значение
string
Исходный код
wp-includes/l10n.php:2040
function wp_get_list_item_separator() {
global $wp_locale;
if ( ! ( $wp_locale instanceof WP_Locale ) ) {
// Default value of WP_Locale::get_list_item_separator().
/* translators: Used between list items, there is a space after the comma. */
return __( ', ' );
}
return $wp_locale->get_list_item_separator();
}
История изменений
| Версия | Описание |
|---|---|
| 6.0.0 | Introduced. |

