Action hook 'comment_atom_entry'

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

View Source

comment_atom_entry

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

Hook Information

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

Hook Parameters

Type Name Description
int $comment_id ID of the current comment.
int $comment_post_id ID of the post the current comment is connected to.

Usage Examples

Basic Usage
<?php
// Hook into comment_atom_entry
add_action('comment_atom_entry', 'my_custom_function', 10, 2);

function my_custom_function($comment_id, $comment_post_id) {
    // Your custom code here
}

Source Code Context

wp-includes/feed-atom-comments.php:141 - How this hook is used in WordPress core
<?php
 136  		 * @since 2.2.0
 137  		 *
 138  		 * @param int $comment_id      ID of the current comment.
 139  		 * @param int $comment_post_id ID of the post the current comment is connected to.
 140  		 */
 141  		do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );
 142  		?>
 143  	</entry>
 144  	<?php
 145  endwhile;
 146  ?>

PHP Documentation

<?php
/**
		 * Fires at the end of each Atom comment feed item.
		 *
		 * @since 2.2.0
		 *
		 * @param int $comment_id      ID of the current comment.
		 * @param int $comment_post_id ID of the post the current comment is connected to.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/feed-atom-comments.php
Related Hooks

Related hooks will be displayed here in future updates.