get_attachment_icon


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

Parameters:
  • (int) $id Optional. Post ID.
  • (bool) $fullsize Optional, default to false. Whether to have full size image.
  • (array) $max_dims Optional. Dimensions of image.
See:
Returns:
  • (false|string) HTML content.
Defined at:

Description

Retrieve HTML content of icon attachment image element.

Related Functions

get_attachment_icon_src, get_attachment_link, wp_get_attachment_link, wp_get_attachment_caption, get_the_attachment_link

Top Google Results

User discussions

wpseek mobile