comment_atom_entry

Fires at the end of each Atom comment feed item.

Description

do_action( 'comment_atom_entry', (int) $comment_comment_id, (int) $comment_post_id ); 

Parameters (2)

0. $comment_comment_id (int)
ID of the current comment.
1. $comment_post_id (int)
ID of the post the current comment is connected to.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'comment_atom_entry', $comment_comment_id, $comment_post_id ); 
The following example is for adding a hook callback.
  1. // define the comment_atom_entry callback 
  2. function action_comment_atom_entry( $comment_comment_id, $comment_post_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'comment_atom_entry', 'action_comment_atom_entry', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'comment_atom_entry', 'action_comment_atom_entry', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/wp-includes/feed-atom-comments.php  
  1. do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );