# print_embed_comments_button()

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

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

## Сигнатура

```php
print_embed_comments_button()
```

## Описание

Выводит необходимую разметку для кнопки комментариев во встраивании.

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

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

```php
function print_embed_comments_button() {
	if ( is_404() || ! ( get_comments_number() || comments_open() ) ) {
		return;
	}
	?>
	<div class="wp-embed-comments">
		<a href="<?php comments_link(); ?>" target="_top">
			<span class="dashicons dashicons-admin-comments"></span>
			<?php
			printf(
				/* translators: %s: Number of comments. */
				_n(
					'%s <span class="screen-reader-text">Comment</span>',
					'%s <span class="screen-reader-text">Comments</span>',
					get_comments_number()
				),
				number_format_i18n( get_comments_number() )
			);
			?>
		</a>
	</div>
	<?php
}
```

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

- 4.4.0 — Introduced.

## Связанные

Использует: [`_n`](https://chugunov.pro/api-wordpress/functions/_n/), [`is_404`](https://chugunov.pro/api-wordpress/functions/is_404/), [`comments_open`](https://chugunov.pro/api-wordpress/functions/comments_open/), [`get_comments_number`](https://chugunov.pro/api-wordpress/functions/get_comments_number/), [`comments_link`](https://chugunov.pro/api-wordpress/functions/comments_link/), [`number_format_i18n`](https://chugunov.pro/api-wordpress/functions/number_format_i18n/).

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