Filter hook 'atom_enclosure'

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

View Source

atom_enclosure

Filter Hook
Description
Filters the atom enclosure HTML link tag for the current post.

Hook Information

File Location wp-includes/feed.php View on GitHub
Hook Type Filter
Line Number 565

Hook Parameters

Type Name Description
string $html_link_tag The HTML link tag with a URI and other attributes.

Usage Examples

Basic Usage
<?php
// Hook into atom_enclosure
add_filter('atom_enclosure', 'my_custom_filter', 10, 1);

function my_custom_filter($html_link_tag) {
    // Your custom filtering logic here
    return $html_link_tag;
}

Source Code Context

wp-includes/feed.php:565 - How this hook is used in WordPress core
<?php
 560  				 *
 561  				 * @since 2.2.0
 562  				 *
 563  				 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
 564  				 */
 565  				echo apply_filters( 'atom_enclosure', $html_link_tag );
 566  			}
 567  		}
 568  	}
 569  }
 570  

PHP Documentation

<?php
/**
				 * Filters the atom enclosure HTML link tag for the current post.
				 *
				 * @since 2.2.0
				 *
				 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
				 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/feed.php
Related Hooks

Related hooks will be displayed here in future updates.