wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_calculate_image_sizes › WordPress Filter Hooks

Da4.4.0
Deprecaton/a
› apply_filters( 'wp_calculate_image_sizes', $sizes, $size, $image_src, $image_meta, $attachment_id )
Parametri: (5)
  • () sizes A source size value for use in a 'sizes' attribute.
    Richiesto: Sì
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Richiesto: Sì
  • () image_src The URL to the image file or null.
    Richiesto: Sì
  • () image_meta The image meta data as returned by wp_get_attachment_metadata() or null.
    Richiesto: Sì
  • () attachment_id Image attachment ID of the original image or 0.
    Richiesto: Sì
Definito a:
Codex:

Filters the output of wp_calculate_image_sizes().





Sorgenti

return apply_filters( 'wp_calculate_image_sizes', $sizes, $size, $image_src, $image_meta, $attachment_id );