Definition:
function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {}
Registers a new image size
Parameters
- $name
- $width
- $height
- $crop
Source code
function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
global $_wp_additional_image_sizes;
$_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => (bool) $crop );
}
237

February 11, 2011 


No comments yet... Be the first to leave a reply!