WordPress at a glance
filter is not described

wp_get_original_image_path filter-hook . WP 5.3.0

Filters the path to the original image.

Usage

add_filter( 'wp_get_original_image_path', 'filter_function_name_5371', 10, 2 );
function filter_function_name_5371( $original_image, $attachment_id ){
	// filter...

	return $original_image;
}
$original_image(string)
Path to original image file.
$attachment_id(int)
Attachment ID.

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

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

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

wp_get_original_image_path()
wp_get_original_image_path
wp-includes/post.php 7425
return apply_filters( 'wp_get_original_image_path', $original_image, $attachment_id );

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

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