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



intermediate_image_sizes_advanced ›

Seit5.1.0
Veraltetn/v
apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id )
Parameter: (3)
  • (array) $sizes An associative array of image sizes.
    Erforderlich: Ja
  • (array) $metadata An associative array of image metadata: width, height, file.
    Erforderlich: Ja
  • (int) $attachment_id Current attachment ID.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the image sizes automatically generated when uploading an image.





Quellcode

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