apply_filters( ‘_wp_relative_upload_path’, string $new_path, string $path )

In this article

Filters the relative path to an uploaded file.

Parameters

$new_pathstring
Relative path to the file.
$pathstring
Full path to the file.

Source

return apply_filters( '_wp_relative_upload_path', $new_path, $path );

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

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