Un motore di ricerca WordPress per sviluppatori e autori di temi



set_post_thumbnail_size ›

Da2.9.0
Deprecaton/a
set_post_thumbnail_size ( $width = 0, $height = 0, $crop = false )
Parametri: (3)
  • (int) $width Image width in pixels.
    Richiesto: No
    Default:
  • (int) $height Image height in pixels.
    Richiesto: No
    Default:
  • (bool|array) $crop Optional. Whether to crop images to specified width and height or resize. An array can specify positioning of the crop area. Default false.
    Richiesto: No
    Default: false
Vedi:
Definito a:
Codex:

Registers an image size for the post thumbnail.



Sorgenti

function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
	add_image_size( 'post-thumbnail', $width, $height, $crop );
}