WordPress at a glance
filter is not described

load_image_to_edit_attachmenturl filter-hook . WP 3.1.0

Filters the image URL if not in the local filesystem.

The filter is only evaluated if fopen is enabled on the server.


add_filter( 'load_image_to_edit_attachmenturl', 'filter_function_name_9628', 10, 3 );
function filter_function_name_9628( $image_url, $attachment_id, $size ){
	// filter...

	return $image_url;
Current image URL.
Attachment ID.
Size of the image.


Since 3.1.0 Introduced.

Where the hook is called

wp-admin/includes/image.php 1013
$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );

Where in WP core the hook is used WordPress

Usage not found.