do_action( 'atom_entry' )

Fires at the end of each Atom feed item.

Description Description

Source Source

File: wp-includes/feed-atom.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 1 content
    Contributed by Terri Ann

    Adds a rights element to all Atom feed entries.

    Uses the post entry’s publication year and the blog name for copyright.

    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' ) );

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