wp_create_thumbnail
- wp_create_thumbnail is deprecated since version 3.5.0!
Alternative: image_resize()
wp_create_thumbnail ( $file, $max_side, $deprecated = '' )
Parameters:- (mixed) file Filename of the original image, Or attachment ID.
- (int) max_side Maximum length of a single side for the thumbnail.
- (mixed) deprecated Never used.
See:Returns:- (string) Thumbnail path on success, Error string on failure.
Defined at: - Introduced in WordPress: 1.2.0
- Deprecated in WordPress: 3.5.0
Description
This was once used to create a thumbnail from an Image given a maximum side size.