2020-05-02 / 2414阅 / 悠然
Scale an image to fit a particular size (such as ‘thumb’ or ‘medium’).
The URL might be the original image, or it might be a resized version. This function won’t create a new resized copy, it will just return an already resized>‘image_downsize’ filter to hook into and offer image resizing services for images. The hook must return an array with the same elements that are normally returned from the function.
Attachment ID for image.
Image size to scale to. Accepts any valid image size name, or an array of width and height values in pixels (in that order).
Default value: 'medium'
(array|false) Array of image data, or boolean false if no image is available.