HTTP/2 301
server: nginx
date: Thu, 09 Oct 2025 05:11:00 GMT
content-type: text/html; charset=UTF-8
location: https://developer.wordpress.org/reference/functions/wp_create_thumbnail/
x-content-type-options: nosniff
content-language: en
x-ua-compatible: IE=Edge
vary: Accept-Encoding, Cookie
expires: Thu, 01 Jan 1970 00:00:00 GMT
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
HTTP/2 200
server: nginx
date: Thu, 09 Oct 2025 05:11:01 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
wp_create_thumbnail() – Function | Developer.WordPress.org
wp_create_thumbnail( mixed $file, int $max_side, mixed $deprecated = '' ): string
This was once used to create a thumbnail from an Image given a maximum side size.
$file
mixedrequiredFilename of the original image, Or attachment ID.
$max_side
intrequiredMaximum length of a single side for the thumbnail.
$deprecated
mixedoptionalNever used.
Default:''
string Thumbnail path on success, Error string on failure.
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 ) );
}
View all references View on Trac View on GitHub
User Contributed Notes
You must log in before being able to contribute a note or feedback.