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



image_downsize › Filtr WordPress Hooks

Od2.5.0
Przestarzałyn/a
› apply_filters( 'image_downsize', false, $id, $size )
Parametry: (3)
  • () downsize Whether to short-circuit the image downsize.
    Wymagane: Tak
  • () id Attachment ID for image.
    Wymagane: Tak
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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