Glossary Term
image_downsize()
image_downsize() — Scales 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 one if it exists. A plugin may use the {
Inputs: $id (int): Attachment ID for image. $size (string|int[]): Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default ‘medium’.
Returns array|false: Array of image data, or boolean false if no image is available. Field $0 (string): Image source URL. Field $1 (int): Image width in pixels. Field $2 (int): Image height in pixels. Field $3 (bool): Whether the image is a resized image.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
