Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_create_thumbnail ›

Desde1.2.0
Obsoleto3.5.0
wp_create_thumbnail ( $file, $max_side, $deprecated = '' )
Parâmetros: (3)
  • (mixed) $file Filename of the original image, Or attachment id.
    Required: Yes
  • (int) $max_side Maximum length of a single side for the thumbnail.
    Required: Yes
  • (mixed) $deprecated Never used.
    Required: No
    Padrão: (empty)
Ver:
Retorna:
  • (string) Thumbnail path on success, Error string on failure.
Definido em:
Codex:

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



Fonte

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