Revision: 68880
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 10, 2015 06:05 by escalatoraccident
Initial Code
<?php function pw_add_image_sizes() { add_image_size( 'pw-thumb', 300, 100, true ); add_image_size( 'pw-large', 600, 300, true ); } add_action( 'init', 'pw_add_image_sizes' ); function pw_show_image_sizes($sizes) { $sizes['pw-thumb'] = __( 'Custom Thumb', 'pippin' ); $sizes['pw-large'] = __( 'Custom Large', 'pippin' ); return $sizes; } add_filter('image_size_names_choose', 'pw_show_image_sizes');
Initial URL
Initial Description
for adding custom image sizes you can select from media uploader Credit: pippinsplugins.com/add-custom-image-sizes-to-media-uploader/
Initial Title
Adding Custom Image Sizes
Initial Tags
Initial Language
PHP