wp_create_thumbnail

DeprecatedDeprecated

This function has been deprecated. Use image_resize() instead.

SummerySummery

This was once used to create a thumbnail from an Image given a maximum side size.

Syntax

wp_create_thumbnail( mixed $file, int $max_side, mixed $deprecated = '' )

ParametersParameters

$file

(mixed) (Required) Filename of the original image, Or attachment id.

$max_side

(int) (Required) Maximum length of a single side for the thumbnail.

$deprecated

(mixed) (Optional) Never used.

Default value: ''

ReturnReturn

(string) Thumbnail path on success, Error string on failure.

SourceSource

File: wp-admin/includes/deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Use image_resize()
1.2.0 Introduced.

See alsoSee also

Scroll to Top