wphooks.info - load_image_to_edit_path

load_image_to_edit_path

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/image.php:
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
	/**
	 * Filters the returned path or URL of the current image.
	 *
	 * @since 2.9.0
	 *
	 * @param string|bool $filepath      File path or URL to current image, or false.
	 * @param string      $attachment_id Attachment ID.
	 * @param string      $size          Size of the image.
	 */
	return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );
}

/**
 * Copy an existing image file.
 *
 * @since 3.4.0
 * @access private
 *
 * @param string $attachment_id Attachment ID.