Action hook 'atom_ns'

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

View Source

atom_ns

Action Hook
Description
Atom Feed Template for displaying Atom Comments feed.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-includes/feed-atom-comments.php:20 - How this hook is used in WordPress core
<?php
  15  	xmlns="http://www.w3.org/2005/Atom"
  16  	xml:lang="<?php bloginfo_rss( 'language' ); ?>"
  17  	xmlns:thr="http://purl.org/syndication/thread/1.0"
  18  	<?php
  19  		/** This action is documented in wp-includes/feed-atom.php */
  20  		do_action( 'atom_ns' );
  21  
  22  		/**
  23  		 * Fires inside the feed tag in the Atom comment feed.
  24  		 *
  25  		 * @since 2.8.0

PHP Documentation

<?php
/**
 * Atom Feed Template for displaying Atom Comments feed.
 *
 * @package WordPress
 */
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.