A WordPress-centric search engine for devs and theme authors



enclosure_links ›

Since4.4.0
Deprecatedn/a
apply_filters( 'enclosure_links', $post_links, $post_ID )
Parameters: (2)
  • (array) $post_links An array of enclosure links.
    Required: Yes
  • (int) $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 );