首页 WordPress函数大全 get_post_gallery_images()

get_post_gallery_images()

2020-05-01 / 2881阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_post_gallery_images( int|WP_Post $post )

Checks a post’s content for galleries and return the image srcs for the first found gallery

描述

See also See also

  • get_post_gallery()

Top ↑

参数

$post

(int|WP_Post)
(Optional)
Post ID or WP_Post object. Default is global $post.

返回

(string[]) A list of a gallery's image srcs in order.

大家谈论
    我的见解