wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



image_downsize › WordPress Filter Hooks

Seit2.5.0
Veraltetn/v
apply_filters( 'image_downsize', false, $id, $size )
Parameter: (3)
  • () downsize Whether to short-circuit the image downsize.
    Erforderlich: Ja
  • () id Attachment ID for image.
    Erforderlich: Ja
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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