WordPress at a glance

remove_image_size() WP 1.0

Remove a new image size.

  • Global. Array. $_wp_additional_image_sizes

No Hooks.


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


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

Code of remove image size: wp-includes/media.php VER 5.1.1

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