apply_filters( ‘wp_create_file_in_uploads’, string $file, int $attachment_id )

In this article

Filters the attachment file path after the custom header or background image is set.

Description

Used for file replication.

Parameters

$filestring
Path to the file.
$attachment_idint
Attachment ID.

Source

$file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.