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



image_resize_dimensions › WordPress Filter Hooks

Seit3.4.0
Veraltetn/v
apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop )
Parameter: (6)
  • () null Whether to preempt output of the resize dimensions.
    Erforderlich: Ja
  • () orig_w Original width in pixels.
    Erforderlich: Ja
  • () orig_h Original height in pixels.
    Erforderlich: Ja
  • () dest_w New width in pixels.
    Erforderlich: Ja
  • () dest_h New height in pixels.
    Erforderlich: Ja
  • () crop Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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