Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



remove_image_size ›

Seit3.9.0
Veraltetn/v
remove_image_size ( $name )
Parameter:
  • (string) $name The image size to remove.
    Erforderlich: Ja
Gibt zurück:
  • (bool) True if the image size was successfully removed, false on failure.
Definiert in:
Codex:

Remove a new image size.



Quellcode

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;
}