wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_image_src_get_dimensions › WordPress Filter Hooks

Da5.7.0
Deprecaton/a
› apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id )
Parametri: (4)
  • () dimensions Array with first element being the width and second element being the height, or false if dimensions could not be determined.
    Richiesto: Sì
  • () image_src The image source file.
    Richiesto: Sì
  • () image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
    Richiesto: Sì
  • () attachment_id The image attachment ID. Default 0.
    Richiesto: Sì
Definito a:
Codex:

Filters the wp_image_src_get_dimensions() value.





Sorgenti

return apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id );