Action hook 'atom_head'

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

View Source

atom_head

Action Hook
Description
Fires just before the first Atom feed entry.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-includes/feed-atom.php:49 - How this hook is used in WordPress core
<?php
  44  	/**
  45  	 * Fires just before the first Atom feed entry.
  46  	 *
  47  	 * @since 2.0.0
  48  	 */
  49  	do_action( 'atom_head' );
  50  
  51  	while ( have_posts() ) :
  52  		the_post();
  53  		?>
  54  	<entry>

PHP Documentation

<?php
/**
	 * Fires just before the first Atom feed entry.
	 *
	 * @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.