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



intermediate_image_sizes_advanced › WordPress Filter Hooks

Seit5.3.0
Veraltetn/v
apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id )
Parameter: (3)
  • (array) $new_sizes Associative array of image sizes to be created.
    Erforderlich: Ja
  • (array) $image_meta The image meta data: width, height, file, sizes, etc.
    Erforderlich: Ja
  • (int) $attachment_id The attachment post ID for the image.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the image sizes automatically generated when uploading an image.





Quellcode

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