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



get_post_gallery › WordPress过滤钩子

Since3.6.0
已弃用n/a
› apply_filters( 'get_post_gallery', $gallery, $post, $galleries )
参数: (3)
  • () gallery The first-found post gallery, or false if the post has no gallery. An HTML string when `$html` is true, otherwise an array.
    Required: Yes
  • () post Post ID or object.
    Required: Yes
  • () galleries Associative array of all found post galleries.
    Required: Yes
定义在:
文档:

Filters the first-found post gallery.





源码

return apply_filters( 'get_post_gallery', $gallery, $post, $galleries );