rss_enclosure WordPress Filter Hook

The rss_enclosure WordPress hook allows you to add enclosures to your RSS feed. This is useful for podcasting and other types of media.

apply_filters( 'rss_enclosure', string $html_link_tag ) #

Filters the RSS enclosure HTML link tag for the current post.


Parameters

$html_link_tag

(string)The HTML link tag with a URI and other attributes.


Top ↑

Source

File: wp-includes/feed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.