rss_enclosure хук-фильтрWP 2.2.0

Filters the RSS enclosure HTML link tag for the current post.

Использование

add_filter( 'rss_enclosure', 'wp_kama_rss_enclosure_filter' );

/**
 * Function for `rss_enclosure` filter-hook.
 * 
 * @param string $html_link_tag The HTML link tag with a URI and other attributes.
 *
 * @return string
 */
function wp_kama_rss_enclosure_filter( $html_link_tag ){

	// filter...
	return $html_link_tag;
}
$html_link_tag(строка)
The HTML link tag with a URI and other attributes.

Список изменений

С версии 2.2.0 Введена.

Где вызывается хук

rss_enclosure()
rss_enclosure
wp-includes/feed.php 494
echo apply_filters( 'rss_enclosure', '<enclosure url="' . esc_url( trim( $enclosure[0] ) ) . '" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( $type ) . '" />' . "\n" );

Где используется хук в WordPress

Использование не найдено.