Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_image_size [ WordPress Function ]

add_image_size ( $name, $width = 0, $height = 0, $crop = false )
Defined at:



Registers a new image size

Source


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

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics