首页 WordPress函数大全 get_attachment_icon_src()

get_attachment_icon_src()

2020-05-01 / 1987阅 / 悠然

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

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

get_attachment_icon_src( int $id, bool $fullsize = false )

Retrieve icon URL and Path.

描述

See also See also

  • wp_get_attachment_image_src()

Top ↑

参数

$id

(int)
(Optional)
Post ID.

$fullsize

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

Default value: false

返回

(array) Icon URL and full path to file, respectively.

大家谈论
    我的见解