wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



image_resize_dimensions › Hooks de Filtros WordPress

Desde3.4.0
Obsoleton/a
› apply_filters( 'image_resize_dimensions', null, $orig_w, $orig_h, $dest_w, $dest_h, $crop )
Parâmetros: (6)
  • () null Whether to preempt output of the resize dimensions.
    Required: Yes
  • () orig_w Original width in pixels.
    Required: Yes
  • () orig_h Original height in pixels.
    Required: Yes
  • () dest_w New width in pixels.
    Required: Yes
  • () dest_h New height in pixels.
    Required: Yes
  • () crop Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.
    Required: Yes
Definido em:
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.




Fonte

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