get_post_galleries
apply_filters( ‘get_post_galleries’, array $galleries , WP_Post $post )
过滤器::过滤给定文章中找到的所有库的列表。
Filter Hook: Filters the list of all found galleries in the given post.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$galleries | (array) | 所有找到的后期库的关联数组。 |
$post | (WP_Post) | Post对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.6.0 | wp-includes/media.php:4215 | 1 | 0 |
get_post_galleries 为WP2原创文章,链接:https://www.wp2.cn/hook/get_post_galleries-2/