2020-05-01 / 4801阅 / 悠然
Retrieves media attached to the passed post.
(string) (Required) Mime type.
(int|WP_Post) (Optional) Post ID or WP_Post object. Default is global $post.
(WP_Post[]) Array of media attached to the given post.