wp_create_thumbnail


wp_create_thumbnail ( $file, $max_side, $deprecated = '' )

Parameters:
  • (mixed) file Filename of the original image, Or attachment ID.
  • (int) max_side Maximum length of a single side for the thumbnail.
  • (mixed) deprecated Never used.
See:
Returns:
  • (string) Thumbnail path on success, Error string on failure.
Defined at:

Description

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

Related Functions

wp_create_tag, wp_create_term, wpmu_create_blog, wp_create_user, wp_ajax_set_attachment_thumbnail

Top Google Results

User discussions

wpseek mobile