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 ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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