Filter hook 'load_image_to_edit_filesystempath'

in WP Core File wp-admin/includes/image.php at line 1184

Description

Filters the path to an attachment's file when editing the image. The filter is evaluated for all image sizes except 'full'.

Occurrences

Filename Line Number
wp-admin/includes/image.php 1184

Parameters

Type Name Description
string $path Path to the current image.
int $attachment_id Attachment ID.
string|int[] $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

PHP Doc

/**
				 * Filters the path to an attachment's file when editing the image.
				 *
				 * The filter is evaluated for all image sizes except 'full'.
				 *
				 * @since 3.1.0
				 *
				 * @param string       $path          Path to the current image.
				 * @param int          $attachment_id Attachment ID.
				 * @param string|int[] $size          Requested image size. Can be any registered image size name, or
				 *                                    an array of width and height values in pixels (in that order).
				 */