WordPress at a glance
filter is not described

_wp_relative_upload_path filter-hook . WP 2.9.0

Filters the relative path to an uploaded file.


add_filter( '_wp_relative_upload_path', 'filter_function_name_4456', 10, 2 );
function filter_function_name_4456( $new_path, $path ){
	// filter...

	return $new_path;
Relative path to the file.
Full path to the file.


Since 2.9.0 Introduced.

Where the hook is called

wp-includes/post.php 587
return apply_filters( '_wp_relative_upload_path', $new_path, $path );

Where in WP core the hook is used WordPress

Usage not found.