Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_calculate_image_sizes ›

Od4.4.0
Przestarzałyn/a
apply_filters( 'wp_calculate_image_sizes', $sizes, $size, $image_src, $image_meta, $attachment_id )
Parametry: (5)
  • (string) $sizes A source size value for use in a 'sizes' attribute.
    Wymagane: Tak
  • (array|string) $size Requested size. Image size or array of width and height values in pixels (in that order).
    Wymagane: Tak
  • (string|null) $image_src The URL to the image file or null.
    Wymagane: Tak
  • (array|null) $image_meta The image meta data as returned by wp_get_attachment_metadata() or null.
    Wymagane: Tak
  • (int) $attachment_id Image attachment ID of the original image or 0.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the output of 'wp_calculate_image_sizes()'.





Źródło

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