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



wp_constrain_dimensions ›

Seit4.1.0
Veraltetn/v
apply_filters( 'wp_constrain_dimensions', array( $w, $h )
Parameter: (5)
  • (array) $dimensions The image width and height.
    Erforderlich: Ja
  • (int) $current_width The current width of the image.
    Erforderlich: Ja
  • (int) $current_height The current height of the image.
    Erforderlich: Ja
  • (int) $max_width The maximum width permitted.
    Erforderlich: Ja
  • (int) $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 );