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



wp_calculate_image_srcset_meta › Filtr WordPress Hooks

Od4.5.0
Przestarzałyn/a
› apply_filters( 'wp_calculate_image_srcset_meta', $image_meta, $size_array, $image_src, $attachment_id )
Parametry: (4)
  • () image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Wymagane: Tak
  • () size_array { An array of requested width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Wymagane: Tak
  • () image_src The 'src' of the image.
    Wymagane: Tak
  • () attachment_id The image attachment ID or 0 if not supplied.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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