do_action( ‘atom_entry’ )

In this article

Fires at the end of each Atom feed item.

Source

do_action( 'atom_entry' );

Changelog

VersionDescription
2.0.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    Example
    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.