首页 WordPress函数大全 get_attachment_icon()

get_attachment_icon()

2020-05-01 / 5348阅 / 悠然

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

Warning: This function has been deprecated. Use wp_get_attachment_image() instead.

get_attachment_icon( int $id, bool $fullsize = false, array $max_dims = false )

Retrieve HTML content of icon attachment image element.

描述

See also See also

  • wp_get_attachment_image()

Top ↑

参数

$id

(int)
(Optional)
Post ID.

$fullsize

(bool)
(Optional)
default to false. Whether to have full size image.

Default value: false

$max_dims

(array)
(Optional)
Dimensions of image.

Default value: false

返回

(string|false) HTML content.

大家谈论
    我的见解