wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



enclosure_links › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'enclosure_links', $post_links, $post->ID )
Parameter: (2)
  • () post_links An array of enclosure links.
    Erforderlich: Ja
  • () post_id Post ID.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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