This was once used to create a thumbnail from an Image given a maximum side size.
Description
See also
Parameters
$file
mixedrequired- Filename of the original image, Or attachment ID.
$max_side
intrequired- Maximum length of a single side for the thumbnail.
$deprecated
mixedoptional- Never used.
Default:
''
Source
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 ) );
}
Changelog
Version | Description |
---|---|
3.5.0 | Use image_resize() |
1.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.