Description
Filters the attached file based on the given ID.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post.php | 848 |
Parameters
Type | Name | Description |
---|---|---|
string|false | $file | The file path to where the attached file should be, false otherwise. |
int | $attachment_id | Attachment ID. |
PHP Doc
/**
* 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.
*/