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.


Top ↑

Parameters

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

Top ↑

Source

File: wp-includes/functions.php. View all references

$post_links = apply_filters( 'enclosure_links', $post_links, $post->ID );


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.