load_image_to_edit_filesystempath

load_image_to_edit_filesystempath

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('load_image_to_edit_filesystempath') is found 1 times:

  • /wp-admin/includes/image.php line 1226
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
                 * @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).
                 */
                $filepath = apply_filters( 'load_image_to_edit_filesystempath', $filepath, $attachment_id, $size );
            }
        }
    } elseif ( function_exists( 'fopen' ) && ini_get( 'allow_url_fopen' ) ) {
        /**
         * Filters the path to an attachment's URL when editing the image.
         *