wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_create_thumbnail › WordPress Function

Od1.2.0
Przestarzały3.5.0
wp_create_thumbnail ( $file, $max_side, $deprecated = '' )
Parametry: (3)
  • (mixed) $file Filename of the original image, Or attachment ID.
    Wymagane: Tak
  • (int) $max_side Maximum length of a single side for the thumbnail.
    Wymagane: Tak
  • (mixed) $deprecated Never used.
    Wymagane: Nie
    Domyślny: (puste)
Zobacz:
Powrót:
  • (string) Thumbnail path on success, Error string on failure.
Zdefiniowane na:
Codex:

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



Źródło

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