# print_embed_scripts()

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

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

## Сигнатура

```php
print_embed_scripts()
```

## Описание

Выводит JavaScript в заголовок iframe встраивания.

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

Файл: `wp-includes/embed.php:1103`

```php
function print_embed_scripts() {
	$js_path = '/js/wp-embed-template' . wp_scripts_get_suffix() . '.js';
	wp_print_inline_script_tag(
		trim( file_get_contents( ABSPATH . WPINC . $js_path ) ) . "\n//# sourceURL=" . esc_url_raw( includes_url( $js_path ) )
	);
}
```

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

- 4.4.0 — Introduced.

## Связанные

Использует: [`wp_print_inline_script_tag`](https://chugunov.pro/api-wordpress/functions/wp_print_inline_script_tag/), [`wp_scripts_get_suffix`](https://chugunov.pro/api-wordpress/functions/wp_scripts_get_suffix/), [`esc_url_raw`](https://chugunov.pro/api-wordpress/functions/esc_url_raw/), [`includes_url`](https://chugunov.pro/api-wordpress/functions/includes_url/).

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