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



image_downsize › WordPress Filter Hooks

Da2.5.0
Deprecaton/a
› apply_filters( 'image_downsize', false, $id, $size )
Parametri: (3)
  • () downsize Whether to short-circuit the image downsize.
    Richiesto: Sì
  • () id Attachment ID for image.
    Richiesto: Sì
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Richiesto: Sì
Definito a:
Codex:

Filters whether to preempt the output of image_downsize().

Returning a truthy value from the filter will effectively short-circuit down-sizing the image, returning that value instead.




Sorgenti

$out = apply_filters( 'image_downsize', false, $id, $size );