image_editor_save_pre, $image, $post_id

image_editor_save_pre, $image, $post_id

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: 7.0.3

apply_filters('image_editor_save_pre, $image, $post_id') is found 1 times:

  • /wp-admin/includes/image-edit.php line 434
    function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
    	if ( $image instanceof WP_Image_Editor ) {
    
    		/** This filter is documented in wp-admin/includes/image-edit.php */
    		$image = apply_filters( 'image_editor_save_pre', $image, $post_id );
    
    		/**
    		 * Filters whether to skip saving the image file.
    		 *
    		 * Returning a non-null value will short-circuit the save method,
    		 * returning that value instead.