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



intermediate_image_sizes_advanced ›

Desde5.1.0
Obsoleton/a
apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id )
Parâmetros: (3)
  • (array) $sizes An associative array of image sizes.
    Required: Yes
  • (array) $metadata An associative array of image metadata: width, height, file.
    Required: Yes
  • (int) $attachment_id Current attachment ID.
    Required: Yes
Definido em:
Codex:

Filters the image sizes automatically generated when uploading an image.





Fonte

$sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id );