wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_constrain_dimensions › Les Filtres WordPress

Depuis4.1.0
Dépréciéen/a
› apply_filters( 'wp_constrain_dimensions', array( $w, $h )
Paramètres: (5)
  • () dimensions { An array of width and height values. @type int $0 The width in pixels. @type int $1 The height in pixels. }
    Requis: Oui
  • () current_width The current width of the image.
    Requis: Oui
  • () current_height The current height of the image.
    Requis: Oui
  • () max_width The maximum width permitted.
    Requis: Oui
  • () max_height The maximum height permitted.
    Requis: Oui
Défini(e) dans:
Codex:

Filters dimensions to constrain down-sampled images to.





Source

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