WordPress at a glance
filter is not described

image_save_pre filter-hook . WP 2.9.0

Deprecated in from version 3.5.0. It is no longer supported and can be removed in future releases. See image_editor_save_pre.

Deprecated: 3.5.0 Use {@see 'image_editor_save_pre'} instead.

Filters the GD image resource to be streamed to the browser.

Использование

add_filter( 'image_save_pre', 'filter_function_name_7301', 10, 3 );
function filter_function_name_7301( $image, $attachment_id, $string ){
	// filter...

	return $image;
}
$image(resource)
Image resource to be streamed.
$attachment_id(int)
The attachment post ID.
$string
-

Changelog

Since 2.9.0 Introduced.
Deprecated Since 3.5.0 Use {@see 'image_editor_save_pre'} instead.

Where the hook is called

wp_stream_image()
image_save_pre
wp_save_image_file()
image_save_pre
wp-admin/includes/image-edit.php 297
$image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' );
wp-admin/includes/image-edit.php 358
$image = apply_filters_deprecated( 'image_save_pre', array( $image, $post_id ), '3.5.0', 'image_editor_save_pre' );

Where in WP core the hook is used WordPress

Usage not found.