# get_the_content_feed()

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

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

## Сигнатура

```php
get_the_content_feed( string $feed_type = null ): string
```

## Описание

См. alsoget_the_content()

## Параметры

- `$feed_type` `string` — необязательный, по умолчанию `null`. Тип ленты. rss2 | atom | rss | rdf

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

`string`

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

Файл: `wp-includes/feed.php:190`

```php
function get_the_content_feed( $feed_type = null ) {
	if ( ! $feed_type ) {
		$feed_type = get_default_feed();
	}

	/** This filter is documented in wp-includes/post-template.php */
	$content = apply_filters( 'the_content', get_the_content() );
	$content = str_replace( ']]>', ']]&gt;', $content );

	/**
	 * Filters the post content for use in feeds.
	 *
	 * @since 2.9.0
	 *
	 * @param string $content   The current post content.
	 * @param string $feed_type Type of feed. Possible values include 'rss2', 'atom'.
	 *                          Default 'rss2'.
	 */
	return apply_filters( 'the_content_feed', $content, $feed_type );
}
```

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

- 2.9.0 — Introduced.

## Связанные

Использует: [`get_default_feed`](https://chugunov.pro/api-wordpress/functions/get_default_feed/), [`get_the_content`](https://chugunov.pro/api-wordpress/functions/get_the_content/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: [`the_content_feed`](https://chugunov.pro/api-wordpress/functions/the_content_feed/).

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