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



wp_constrain_dimensions › WordPress Filter Hooks

Seit4.1.0
Veraltetn/v
apply_filters( 'wp_constrain_dimensions', array( $w, $h )
Parameter: (5)
  • () dimensions { An array of width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Erforderlich: Ja
  • () current_width The current width of the image.
    Erforderlich: Ja
  • () current_height The current height of the image.
    Erforderlich: Ja
  • () max_width The maximum width permitted.
    Erforderlich: Ja
  • () max_height The maximum height permitted.
    Erforderlich: Ja
Definiert in:
Codex:

Filters dimensions to constrain down-sampled images to.





Quellcode

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