wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_calculate_image_srcset_meta › Hooks de Filtros WordPress

Desde4.5.0
Obsoleton/a
› apply_filters( 'wp_calculate_image_srcset_meta', $image_meta, $size_array, $image_src, $attachment_id )
Parâmetros: (4)
  • () image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Required: Yes
  • () size_array { An array of requested width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Required: Yes
  • () image_src The 'src' of the image.
    Required: Yes
  • () attachment_id The image attachment ID or 0 if not supplied.
    Required: Yes
Definido em:
Codex:

Pre-filters the image meta to be able to fix inconsistencies in the stored data.





Fonte

$image_meta = apply_filters( 'wp_calculate_image_srcset_meta', $image_meta, $size_array, $image_src, $attachment_id );