the_content_rss
Filters the post content in the context of an RSS feed.
Использование
add_filter( 'the_content_rss', 'wp_kama_the_content_rss_filter' ); /** * Function for `the_content_rss` filter-hook. * * @param string $content Content of the current post. * * @return string */ function wp_kama_the_content_rss_filter( $content ){ // filter... return $content; }
- $content(строка)
- Content of the current post.
Список изменений
С версии 0.71 | Введена. |
Где вызывается хук
the_content_rss
wp-includes/deprecated.php 1691
$content = apply_filters('the_content_rss', $content);
Где используется хук в WordPress
wp-includes/default-filters.php 253
add_filter( 'the_content_rss', 'ent2ncr', 8 );