# print_late_styles()

URL: https://chugunov.pro/api-wordpress/functions/print_late_styles/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 3.3.0.

## Сигнатура

```php
print_late_styles(): string[]|void
```

## Описание

Выводит стили, поставленные в очередь слишком поздно для HTML-заголовка.

## Возвращаемое значение

`string[]|void`

## Исходный код

Файл: `wp-includes/script-loader.php:2375`

```php
function print_late_styles() {
	global $wp_styles, $concatenate_scripts;

	if ( ! ( $wp_styles instanceof WP_Styles ) ) {
		return;
	}

	script_concat_settings();
	$wp_styles->do_concat = $concatenate_scripts;
	$wp_styles->do_footer_items();

	/**
	 * Filters whether to print the styles queued too late for the HTML head.
	 *
	 * @since 3.3.0
	 *
	 * @param bool $print Whether to print the 'late' styles. Default true.
	 */
	if ( apply_filters( 'print_late_styles', true ) ) {
		_print_styles();
	}

	$wp_styles->reset();
	return $wp_styles->done;
}
```

## История изменений

- 3.3.0 — Introduced.

## Связанные

Использует: `WP_Styles::do_footer_items`, `WP_Styles::reset`, [`script_concat_settings`](https://chugunov.pro/api-wordpress/functions/script_concat_settings/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: [`_wp_footer_scripts`](https://chugunov.pro/api-wordpress/functions/_wp_footer_scripts/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/print_late_styles/
