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



intermediate_image_sizes_advanced ›

Desde5.3.0
Obsoleton/a
apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id )
Parâmetros: (3)
  • (array) $new_sizes Associative array of image sizes to be created.
    Required: Yes
  • (array) $image_meta The image meta data: width, height, file, sizes, etc.
    Required: Yes
  • (int) $attachment_id The attachment post ID for the image.
    Required: Yes
Definido em:
Codex:

Filters the image sizes automatically generated when uploading an image.





Fonte

$new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id );