Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_create_thumbnail ›

Da1.2.0
Deprecato3.5.0
wp_create_thumbnail ( $file, $max_side, $deprecated = '' )
Parametri: (3)
  • (mixed) $file Filename of the original image, Or attachment id.
    Richiesto:
  • (int) $max_side Maximum length of a single side for the thumbnail.
    Richiesto:
  • (mixed) $deprecated Never used.
    Richiesto: No
    Default: (vuoto)
Vedi:
Ritorna:
  • (string) Thumbnail path on success, Error string on failure.
Definito a:
Codex:

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



Sorgenti

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 ) );
}