wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



image_resize_dimensions › WordPress Filter Hooks

Da3.4.0
Deprecaton/a
› apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop )
Parametri: (6)
  • () null Whether to preempt output of the resize dimensions.
    Richiesto: Sì
  • () orig_w Original width in pixels.
    Richiesto: Sì
  • () orig_h Original height in pixels.
    Richiesto: Sì
  • () dest_w New width in pixels.
    Richiesto: Sì
  • () dest_h New height in pixels.
    Richiesto: Sì
  • () crop Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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