atom_enclosure WordPress Filter Hook

The atom_enclosure Wordpress hook allows you to specify an enclosure for your atom feed. This is useful for podcasts or other audio files that you want to include in your feed.

apply_filters( 'atom_enclosure', string $html_link_tag ) #

Filters the atom 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.