WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_attached_file

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 746 /**
* Filters the attached file based on the given ID.
*
* @since 2.1.0
*
* @param string|false $file The file path to where the attached file should be, false otherwise.
* @param int $attachment_id Attachment ID.
*/

Hook Parameters

Parameter Type Name Description
string|false $file The file path to where the attached file should be, false otherwise.
int $attachment_id Attachment ID.