Filter hook 'update_attached_file'

in WP Core File wp-includes/post.php at line 876

Description

Filters the path to the attached file to update.

Occurrences

Filename Line Number
wp-includes/post.php 876

Parameters

Type Name Description
string $file Path to the attached file to update.
int $attachment_id Attachment ID.

PHP Doc

/**
	 * Filters the path to the attached file to update.
	 *
	 * @since 2.1.0
	 *
	 * @param string $file          Path to the attached file to update.
	 * @param int    $attachment_id Attachment ID.
	 */