Title: atom_enclosure
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘atom_enclosure’, string $html_link_tag )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#wp--skip-link--target)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#parameters)󠁿

 `$html_link_tag`string

The HTML link tag with a URI and other attributes.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#source)󠁿

    ```php
    echo apply_filters( 'atom_enclosure', $html_link_tag );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/feed.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/feed.php#L565)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/feed.php#L565-L565)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#related)󠁿

| Used by | Description | 
| [atom_enclosure()](https://developer.wordpress.org/reference/functions/atom_enclosure/)`wp-includes/feed.php` |

Displays the atom enclosure for the current post.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/atom_enclosure/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.2.0](https://developer.wordpress.org/reference/since/2.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fatom_enclosure%2F)
before being able to contribute a note or feedback.