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.

Usage

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

	return $new_path;
}
$new_path(string)
Relative path to the file.
$path(string)
Full path to the file.

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.