wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_constrain_dimensions › Filtr WordPress Hooks

Od4.1.0
Przestarzałyn/a
› apply_filters( 'wp_constrain_dimensions', array( $w, $h )
Parametry: (5)
  • () dimensions { An array of width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Wymagane: Tak
  • () current_width The current width of the image.
    Wymagane: Tak
  • () current_height The current height of the image.
    Wymagane: Tak
  • () max_width The maximum width permitted.
    Wymagane: Tak
  • () max_height The maximum height permitted.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters dimensions to constrain down-sampled images to.





Źródło

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