WordPress at a glance

remove_image_size() WP 1.0

Remove a new image size.

  • Global. Array. $_wp_additional_image_sizes

No Hooks.

Return

true/false. True if the image size was successfully removed, false on failure.

Usage

remove_image_size( $name );
$name(string) (required)
The image size to remove.

Code of remove_image_size: wp-includes/media.php VER 5.0.1

<?php
function remove_image_size( $name ) {
	global $_wp_additional_image_sizes;

	if ( isset( $_wp_additional_image_sizes[ $name ] ) ) {
		unset( $_wp_additional_image_sizes[ $name ] );
		return true;
	}

	return false;
}

Related Functions

From tag: Thumbnail (images)

More from category: Thumbnails

No comments
    Hello, !     Log In . Register