wpseek.com
WordPress开发者和主题制作者的搜索引擎
rest_get_avatar_sizes › WordPress Function
Since4.7.0
已弃用n/a
› rest_get_avatar_sizes ( 没有参数 )
返回: |
|
定义在: |
|
文档: |
Retrieves the pixel sizes for avatars.
Related Functions: rest_get_avatar_urls, get_avatar, get_avatar_url, rest_get_server, get_avatar_data
源码
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 ) ); }