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



image_downsize ›

Seit2.5.0
Veraltetn/v
apply_filters( 'image_downsize', false, $id, $size )
Parameter: (3)
  • (bool) $downsize Whether to short-circuit the image downsize. Default false.
    Erforderlich: Ja
  • (int) $id Attachment ID for image.
    Erforderlich: Ja
  • (array|string) $size Size of image. Image size or array of width and height values (in that order). Default 'medium'.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to preempt the output of image_downsize().

Passing a truthy value to the filter will effectively short-circuit down-sizing the image, returning that value as output instead.





Quellcode

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