_oembed_filter_feed_content()
Prepare the oembed HTML to be displayed in an RSS feed.
Эта функция считается внутренней для использования самим ядром. Не рекомендуется использовать эту функцию в своем коде.
Хуков нет.
Возвращает
Строку
. The filtered content.
Использование
_oembed_filter_feed_content( $content );
- $content(строка) (обязательный)
- The content to filter.
Список изменений
С версии 4.4.0 | Введена. |
Код _oembed_filter_feed_content() oembed filter feed content WP 6.2.2
function _oembed_filter_feed_content( $content ) { return str_replace( '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"', $content ); }