atom_enclosure
Filters the atom enclosure HTML link tag for the current post.
Usage
add_filter( 'atom_enclosure', 'wp_kama_atom_enclosure_filter' );
/**
* Function for `atom_enclosure` filter-hook.
*
* @param string $html_link_tag The HTML link tag with a URI and other attributes.
*
* @return string
*/
function wp_kama_atom_enclosure_filter( $html_link_tag ){
// filter...
return $html_link_tag;
}
- $html_link_tag(string)
- The HTML link tag with a URI and other attributes.
Changelog
| Since 2.2.0 | Introduced. |
Where the hook is called
atom_enclosure
wp-includes/feed.php 565
echo apply_filters( 'atom_enclosure', $html_link_tag );