首页 WordPress函数大全 get_udims()

get_udims()

2020-05-02 / 5279阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use wp_constrain_dimensions() instead.

get_udims( int $width, int $height )

Calculated the new dimensions for a downsampled image.

描述

See also See also

  • wp_constrain_dimensions()

Top ↑

参数

$width

(int)
(Required)
Current width of the image

$height

(int)
(Required)
Current height of the image

返回

(array) Shrunk dimensions (width, height).

大家谈论
    我的见解