On this page
apply_filters( 'enclosure_links', string[] $post_links, int $post_ID )
Filters the list of enclosure links before querying the database.
Description
Allows for the addition and/or removal of potential enclosures to save to postmeta before checking the database for existing enclosures.
Parameters
$post_linksstring[]-
An array of enclosure links.
$post_IDint-
Post ID.
Source
File: wp-includes/functions.php. View all references
$post_links = apply_filters( 'enclosure_links', $post_links, $post->ID );
Related
Used By
| Used By | Description |
|---|---|
| do_enclose() wp-includes/functions.php | Checks content for video and audio links to add as enclosures. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/enclosure_links