wpseek.com
WordPress开发者和主题制作者的搜索引擎



rest_avatar_sizes › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 )
参数:
  • (int[]) $sizes An array of int values that are the pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
    Required: Yes
定义在:
文档:

Filters the REST avatar sizes.

Use this filter to adjust the array of sizes returned by the rest_get_avatar_sizes function.





源码

return apply_filters( 'rest_avatar_sizes', array( 24, 48, 96 ) );