comment_atom_entry
Fires at the end of each Atom comment feed item.
Description
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.
- // run the action
- do_action( 'comment_atom_entry', $comment_comment_id, $comment_post_id );
- The following example is for adding a hook callback.
- // define the comment_atom_entry callback
- function action_comment_atom_entry( $comment_comment_id, $comment_post_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'comment_atom_entry', 'action_comment_atom_entry', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );