WordPress at Your Fingertips
filter is not described

enclosure_links filter-hook . WP 4.4.0

Filters the list of enclosure links before querying the database.

Allows for the addition and/or removal of potential enclosures to save to postmeta before checking the database for existing enclosures.


add_filter( 'enclosure_links', 'filter_function_name_382', 10, 2 );
function filter_function_name_382( $post_links, $post_ID ){
	// filter...

	return $post_links;
An array of enclosure links.
Post ID.


Since 4.4.0 Introduced.

Where the hook is called

wp-includes/functions.php 899
$post_links = apply_filters( 'enclosure_links', $post_links, $post->ID );

Where in WP core the hook is used WordPress

Usage not found.