wpseek.com
WordPress开发者和主题制作者的搜索引擎



enclosure_links › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'enclosure_links', $post_links, $post->ID )
参数: (2)
  • () post_links An array of enclosure links.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
定义在:
文档:

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.




源码

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