Filter hook 'load_image_to_edit_path'

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

Description

Filters the returned path or URL of the current image.

Occurrences

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

Parameters

Type Name Description
string|false $filepath File path or URL to current image, or false.
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 returned path or URL of the current image.
	 *
	 * @since 2.9.0
	 *
	 * @param string|false $filepath      File path or URL to current image, or false.
	 * @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).
	 */