Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/image-edit.php | apply_filters_deprecated | 326 | /** * Filters the GD image resource to be streamed to the browser. * * @since 2.9.0 * @deprecated 3.5.0 Use {@see 'image_editor_save_pre'} instead. * * @param resource|GdImage $image Image resource to be streamed. * @param int $attachment_id The attachment post ID. */ |
wp-admin/includes/image-edit.php | apply_filters_deprecated | 407 | /** * Filters whether to skip saving the image file. * * Returning a non-null value will short-circuit the save method, * returning that value instead. * * @since 3.5.0 * * @param bool|null $override Value to return instead of saving. Default null. * @param string $filename Name of the file to be saved. * @param WP_Image_Editor $image The image editor instance. * @param string $mime_type The mime type of the image. * @param int $post_id Attachment post ID. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
resource|GdImage | $image | Image resource to be streamed. |
int | $attachment_id | The attachment post ID. |
resource|GdImage | $image | Image resource to be streamed. |
int | $attachment_id | The attachment post ID. |