wphooks.info - atom_enclosure

atom_enclosure

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-includes/feed.php:
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
		if ( $key == 'enclosure' ) {
			foreach ( (array) $val as $enc ) {
				$enclosure = explode( "\n", $enc );
				/**
				 * 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.
				 */
				echo apply_filters( 'atom_enclosure', '<link href="' . esc_url( trim( $enclosure[0] ) ) . '" rel="enclosure" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( trim( $enclosure[2] ) ) . '" />' . "\n" );
			}
		}
	}
}

/**
 * Determine the type of a string of data with the data formatted.
 *
 * Tell whether the type is text, html, or xhtml, per RFC 4287 section 3.1.