do_action( 'atom_entry' ) Fires at the end of each Atom feed item. ContentsDescription Source Changelog User Contributed Notes Description #Description Source #Source File: wp-includes/feed-atom.php View on Trac Top ↑Changelog #Changelog Changelog Version Description 2.0.0 Introduced. Top ↑User Contributed Notes #User Contributed Notes Skip to note 1 content You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note Contributed by Terri Ann — 2 years ago 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">© %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.
Skip to note 1 content You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note Contributed by Terri Ann — 2 years ago 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">© %1$s %2$s</rights>', get_the_date( 'Y' ), get_bloginfo ( 'name' ) ); }
Example
Adds a rights element to all Atom feed entries.
Uses the post entry’s publication year and the blog name for copyright.