WordPress at Your Fingertips
function is not described

wp_create_thumbnail() WP 1.2.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use image_resize() instead.

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

Hooks from the function

Return

String. Thumbnail path on success, Error string on failure.

Usage

wp_create_thumbnail( $file, $max_side, $deprecated );
$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)
Never used.
Default: ''

Notes

Changelog

Since 1.2.0 Introduced.
Deprecated Since 3.5.0 Use image_resize()

Code of wp_create_thumbnail() WP 5.8.2

function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' );
	return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
}