Core Function
View Source on Trac ↗ wp_create_thumbnail()
wp_create_thumbnail( mixed $file, mixed $max_side, mixed $deprecated = '' ) This was once used to create a thumbnail from an Image given a maximum side size.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $file mixed | Filename of the original image, Or attachment ID. Required |
| $max_side int | Maximum length of a single side for the thumbnail. Required |
| $deprecated mixed | Never used. |
Return Value
(string)
Thumbnail path on success, Error string on failure.
Function Information
Since Version
1.2.0
Source File
wp-admin/includes/deprecated.php
Advertisement