1. 首页
  2. WordPress钩子手册

get_attached_media_args

apply_filters( ‘get_attached_media_args’, array $args, string $type, WP_Post $post )

筛选器挂钩:筛选用于检索附加到给定投递的媒体的参数。
Filter Hook: Filters arguments used to retrieve media attached to the given post.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$args (array) 查询后参数。
$type (string) 所需媒体的Mime类型。
$post (WP_Post) Post对象。

源码(Source)


更新版本 源码位置 使用 被使用
3.6.0 wp-includes/media.php:4091 1 0

get_attached_media_args 为WP2原创文章,链接:https://www.wp2.cn/hook/get_attached_media_args/