wphooks.info - load_image_to_edit_path

load_image_to_edit_path

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-admin/includes/image.php:
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
	/**
	 * 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.