Filter hook 'enclosure_links'

in WP Core File wp-includes/functions.php at line 938

Description

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.

Occurrences

Filename Line Number
wp-includes/functions.php 938

Parameters

Type Name Description
string[] $post_links An array of enclosure links.
int $post_id Post ID.

PHP Doc

/**
	 * 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.
	 *
	 * @since 4.4.0
	 *
	 * @param string[] $post_links An array of enclosure links.
	 * @param int      $post_id    Post ID.
	 */