WPDev.one
Core Function
View Source on Trac ↗

get_attachment_icon()

get_attachment_icon( mixed $id = 0, mixed $fullsize = false, mixed $max_dims = false )

Retrieve HTML content of icon attachment image element.

Parameters 0 required

Name / Type Description
$id
int

Optional. Post ID.

$fullsize
bool

Optional. Whether to have full size image. Default false.

$max_dims
array

Optional. Dimensions of image.

Return Value

((string)
| false) HTML content.

Function Information

Since Version
2.0.0
Source File
wp-includes/deprecated.php
Advertisement