rest_get_avatar_sizes()
最后更新于:2021-11-27 23:36:05
rest_get_avatar_sizes()Retrieves the pixel sizes for avatars.
响应
(int[]) List of pixel sizes for avatars. Default [ 24, 48, 96 ]
.
源文件
文件: gc-includes/rest-api.php
function rest_get_avatar_sizes() {
/**
* Filters the REST avatar sizes.
*
* Use this filter to adjust the array of sizes returned by the
* `rest_get_avatar_sizes` function.
*
* @since 4.4.0
*
* @param int[] $sizes An array of int values that are the pixel sizes for avatars.
* Default `[ 24, 48, 96 ]`.
*/
return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );
}