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



image_resize_dimensions › Filtr WordPress Hooks

Od3.4.0
Przestarzałyn/a
› apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop )
Parametry: (6)
  • () null Whether to preempt output of the resize dimensions.
    Wymagane: Tak
  • () orig_w Original width in pixels.
    Wymagane: Tak
  • () orig_h Original height in pixels.
    Wymagane: Tak
  • () dest_w New width in pixels.
    Wymagane: Tak
  • () dest_h New height in pixels.
    Wymagane: Tak
  • () crop Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether to preempt calculating the image resize dimensions.

Returning a non-null value from the filter will effectively short-circuit image_resize_dimensions(), returning that value instead.




Źródło

$output = apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop );