wpseek.com
A WordPress-centric search engine for devs and theme authors



enclosure_links › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'enclosure_links', $post_links, $post->ID )
Parameters: (2)
  • () post_links An array of enclosure links.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
Defined at:
Codex:

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.




Source

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