Action hook 'atom_entry'

in WP Core File wp-includes/feed-atom.php at line 96

View Source

atom_entry

Action Hook
Description
Fires at the end of each Atom feed item.

Hook Information

File Location wp-includes/feed-atom.php View on GitHub
Hook Type Action
Line Number 96

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into atom_entry
add_action('atom_entry', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/feed-atom.php:96 - How this hook is used in WordPress core
<?php
  91  		/**
  92  		 * Fires at the end of each Atom feed item.
  93  		 *
  94  		 * @since 2.0.0
  95  		 */
  96  		do_action( 'atom_entry' );
  97  
  98  		if ( get_comments_number() || comments_open() ) :
  99  			?>
 100  			<link rel="replies" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php the_permalink_rss(); ?>#comments" thr:count="<?php echo get_comments_number(); ?>" />
 101  			<link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link( 0, 'atom' ) ); ?>" thr:count="<?php echo get_comments_number(); ?>" />

PHP Documentation

<?php
/**
		 * Fires at the end of each Atom feed item.
		 *
		 * @since 2.0.0
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/feed-atom.php
Related Hooks

Related hooks will be displayed here in future updates.