load_image_to_edit

load_image_to_edit

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('load_image_to_edit') is found 1 times:

  • /wp-admin/includes/image.php line 1179
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
         * @param int              $attachment_id Attachment ID.
         * @param string|int[]     $size          Requested image size. Can be any registered image size name, or
         *                                        an array of width and height values in pixels (in that order).
         */
        $image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size );
     
        if ( function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) {
            imagealphablending( $image, false );
            imagesavealpha( $image, true );
        }
    }