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

You appear to be a bot. Output may be restricted

Description

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

Usage

$string = wp_create_thumbnail( $file, $max_side, $deprecated );

Parameters

$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.

Returns

string Thumbnail path on success, Error string on failure.

Source

File name: wordpress/wp-admin/includes/deprecated.php
Lines:

1 to 4 of 4
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
  _deprecated_function( wp_create_thumbnail, '3.5.0', 'image_resize()' );
  return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
}
 

 View on GitHub View on Trac