Function Arguments Return Description Version Path

adjacent_image_link

(bool) $prev = true
 $size = 'thumbnail'
(bool) $text = false
(void)

Display next or previous image link that has the same post parent.

2.5 wp-includes / media.php

attachment_submitbox_metadata

(void)

Displays non-editable attachment metadata in the publish metabox

3.5 wp-admin / includes / media.php

attachment_url_to_postid

(string) $url
(int) The found post ID.

Try to convert an attachment URL into a post ID.

4.0 wp-includes / media.php

clean_attachment_cache

(int) $id
(bool) $clean_terms = false
(void)

Will clean the attachment in the cache.

3.0 wp-includes / post.php

get_attached_file

(int) $attachment_id
(bool) $unfiltered = false
(string|boolean) The file path to where the attached file should be, false otherwise.

Retrieve attached file path based on attachment ID.

2.0 wp-includes / post.php

get_attachment_fields_to_edit

(object) $post
(array) $errors = null
(array) 2.5 wp-admin / includes / media.php

get_attachment_icon

(int) $id = 0
(bool) $fullsize = false
(array) $max_dims = false
(string) HTML content.

Retrieve HTML content of icon attachment image element.

2.0 wp-includes / deprecated.php

get_attachment_icon_src

(int) $id = 0
(bool) $fullsize = false
(array) Icon URL and full path to file, respectively.

Retrieve icon URL and Path.

2.1 wp-includes / deprecated.php

get_attachment_innerHTML

(int) $id = 0
(bool) $fullsize = false
(array) $max_dims = false
(string)

Retrieve HTML content of image element.

2.0 wp-includes / deprecated.php

get_attachment_link

(int|object) $post = null
(bool) $leavename = false
(string)

Retrieve permalink for attachment.

2.0 wp-includes / link-template.php