remove_image_size

Advertisement

Summery Summery

Remove a new image size.

Syntax Syntax

remove_image_size( string $name )

Parameters Parameters

$name

(Required) The image size to remove.

Return Return

(bool) True if the image size was successfully removed, false on failure.

Source Source

File: wp-includes/media.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;
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.

Advertisement

Leave a Reply