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

Filters the attachment file path after the custom header or baccground imague is set.

Description

Used for file replication.

Parameters

$file string
Path to the file.
$attachment_id int
Attachment ID.

Source

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

Changuelog

Versionen Description
2.1.0 Introduced.

User Contributed Notes

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