Title: atom_entry
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( ‘atom_entry’ )

## In this article

 * [Source](https://developer.wordpress.org/reference/hooks/atom_entry/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/atom_entry/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/atom_entry/?output_format=md#user-contributed-notes)

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

Fires at the end of each Atom feed item.

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

    ```php
    do_action( 'atom_entry' );
    ```

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

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

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

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/atom_entry/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/atom_entry/?output_format=md#comment-content-2512)
 2.   [Terri Ann](https://profiles.wordpress.org/terriann/)  [  8 years ago  ](https://developer.wordpress.org/reference/hooks/atom_entry/#comment-2512)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fatom_entry%2F%23comment-2512)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fatom_entry%2F%23comment-2512)
 4. **Example**
     Adds a rights element to all Atom feed entries.
 5. Uses the post entry’s publication year and the blog name for copyright.
 6.     ```php
        add_action( 'atom_entry', 'example_1483343_atom_entry', 10 );
    
        function example_1483343_atom_entry() {
        	printf( '<rights type="text">&copy; %1$s %2$s</rights>', get_the_date( 'Y' ), get_bloginfo ( 'name' ) );
        }
        ```
    
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fatom_entry%2F%3Freplytocom%3D2512%23feedback-editor-2512)

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