get_attached_file Wordpress function


Description:

Retrieve attached file path based on attachment ID.


Syntax:


Arguments:

(int) $attachment_id Attachment ID.
(bool) $unfiltered Whether to apply filters.


Return Type:

(string|bool) The file path to the attached file, or false if the attachment does not exist.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_attached_file


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×