apply_filters( ‘rss_enclosure’, string $html_link_tag )

In this article

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

Parameters

$html_link_tagstring
The HTML link tag with a URI and other attributes.

Source

echo apply_filters( 'rss_enclosure', '<enclosure url="' . esc_url( trim( $enclosure[0] ) ) . '" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( $type ) . '" />' . "\n" );

Changelog

VersionDescription
2.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.