wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



enclosure_links › Les Filtres WordPress

Depuis4.4.0
Dépréciéen/a
› apply_filters( 'enclosure_links', $post_links, $post->ID )
Paramètres: (2)
  • () post_links An array of enclosure links.
    Requis: Oui
  • () post_id Post ID.
    Requis: Oui
Défini(e) dans:
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 );