wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_calculate_image_sizes › Les Filtres WordPress

Depuis4.4.0
Dépréciéen/a
› apply_filters( 'wp_calculate_image_sizes', $sizes, $size, $image_src, $image_meta, $attachment_id )
Paramètres: (5)
  • () sizes A source size value for use in a 'sizes' attribute.
    Requis: Oui
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Requis: Oui
  • () image_src The URL to the image file or null.
    Requis: Oui
  • () image_meta The image meta data as returned by wp_get_attachment_metadata() or null.
    Requis: Oui
  • () attachment_id Image attachment ID of the original image or 0.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the output of wp_calculate_image_sizes().





Source

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