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



wp_constrain_dimensions › WordPress Filter Hooks

Da4.1.0
Deprecaton/a
› apply_filters( 'wp_constrain_dimensions', array( $w, $h )
Parametri: (5)
  • () dimensions { An array of width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Richiesto: Sì
  • () current_width The current width of the image.
    Richiesto: Sì
  • () current_height The current height of the image.
    Richiesto: Sì
  • () max_width The maximum width permitted.
    Richiesto: Sì
  • () max_height The maximum height permitted.
    Richiesto: Sì
Definito a:
Codex:

Filters dimensions to constrain down-sampled images to.





Sorgenti

return apply_filters( 'wp_constrain_dimensions', array( $w, $h ), $current_width, $current_height, $max_width, $max_height );