Un motore di ricerca WordPress per sviluppatori e autori di temi



remove_image_size ›

Da3.9.0
Deprecaton/a
remove_image_size ( $name )
Parametri:
  • (string) $name The image size to remove.
    Richiesto:
Ritorna:
  • (bool) True if the image size was successfully removed, false on failure.
Definito a:
Codex:

Remove a new image size.



Sorgenti

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