WordPress at a glance
function is not described

wp_create_thumbnail() WP 1.2.0

Deprecated in 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.

  • See: image_resize()
Hooks in function

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


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.
Never used.
Default: ''

Code of wp create thumbnail: wp-admin/includes/deprecated.php WP 5.2.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 ) );