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



wp_calculate_image_sizes › WordPress Filter Hooks

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

Filters the output of wp_calculate_image_sizes().





Quellcode

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