On this page
apply_filters( '_wp_relative_upload_path', string $new_path, string $path )
Filters the relative path to an uploaded file.
Parameters
$new_pathstring-
Relative path to the file.
$pathstring-
Full path to the file.
Source
File: wp-includes/post.php. View all references
return apply_filters( '_wp_relative_upload_path', $new_path, $path );
Related
Used By
| Used By | Description |
|---|---|
| _wp_relative_upload_path() wp-includes/post.php | Returns relative path to an uploaded file. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/_wp_relative_upload_path