首页 WordPress函数大全 get_the_attachment_link()

get_the_attachment_link()

2020-05-01 / 5439阅 / 悠然

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

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

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

Retrieve HTML content of attachment image with link.

描述

See also See also

  • wp_get_attachment_link()

Top ↑

参数

$id

(int)
(Optional)
Post ID.

$fullsize

(bool)
(Optional)
Whether to use full size image.

Default value: false

$max_dims

(array)
(Optional)
Max image dimensions.

Default value: false

$permalink

(bool)
(Optional)
Whether to include permalink to image.

Default value: false

返回

(string)

大家谈论
    我的见解