wpseek.com
WordPress开发者和主题制作者的搜索引擎
_wp_add_additional_image_sizes is private and should not be used in themes or plugins directly.
_wp_add_additional_image_sizes › WordPress Function
Since5.3.0
已弃用n/a
› _wp_add_additional_image_sizes ( 没有参数 )
访问: |
|
定义在: |
|
文档: |
Adds additional default image sub-sizes.
These sizes are meant to enhance the way WordPress displays images on the front-end on larger, high-density devices. They make it possible to generate more suitablesrcset
and sizes
attributes
when the users upload large images.
The sizes can be changed or removed by themes and plugins but that is not recommended.
The size "names" reflect the image dimensions, so changing the sizes would be quite misleading.