Action hook 'comments_atom_head'

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

View Source

comments_atom_head

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

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-includes/feed-atom-comments.php:67 - How this hook is used in WordPress core
<?php
  62  	/**
  63  	 * Fires at the end of the Atom comment feed header.
  64  	 *
  65  	 * @since 2.8.0
  66  	 */
  67  	do_action( 'comments_atom_head' );
  68  ?>
  69  <?php
  70  while ( have_comments() ) :
  71  	the_comment();
  72  	$comment_post = get_post( $comment->comment_post_ID );

PHP Documentation

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

Related hooks will be displayed here in future updates.