Uma área de pesquisa sobre o WordPress para devs e autores do tema



remove_image_size ›

Desde3.9.0
Obsoleton/a
remove_image_size ( $name )
Parâmetros:
  • (string) $name The image size to remove.
    Required: Yes
Retorna:
  • (bool) True if the image size was successfully removed, false on failure.
Definido em:
Codex:

Remove a new image size.



Fonte

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